当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Gdata_Extension::takeAttributeFromDOM方法代码示例

本文整理汇总了PHP中Zend_Gdata_Extension::takeAttributeFromDOM方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_Extension::takeAttributeFromDOM方法的具体用法?PHP Zend_Gdata_Extension::takeAttributeFromDOM怎么用?PHP Zend_Gdata_Extension::takeAttributeFromDOM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Gdata_Extension的用法示例。


在下文中一共展示了Zend_Gdata_Extension::takeAttributeFromDOM方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'countHint':
             $this->_countHint = $attribute->nodeValue;
             break;
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         case 'readOnly':
             if ($attribute->nodeValue == "true") {
                 $this->_readOnly = true;
             } else {
                 if ($attribute->nodeValue == "false") {
                     $this->_readOnly = false;
                 } else {
                     throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
                 }
             }
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:27,代码来源:FeedLink.php

示例2: takeAttributeFromDOM

 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are 
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'specialized':
             $this->_specialzied = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:17,代码来源:RecurrenceException.php

示例3: takeAttributeFromDOM

 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'value':
             $this->_value = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:netconstructor,项目名称:Centurion,代码行数:17,代码来源:Transparency.php

示例4: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'familyName':
             $this->_familyName = $attribute->nodeValue;
             break;
         case 'givenName':
             $this->_givenName = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:13,代码来源:Name.php

示例5: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'scheme':
             $this->_scheme = $attribute->nodeValue;
             break;
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:13,代码来源:MediaCategory.php

示例6: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'id':
             $this->_id = $attribute->nodeValue;
             break;
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:sepano,项目名称:open-social-media-monitoring,代码行数:13,代码来源:OriginalEvent.php

示例7: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'relationship':
             $this->_relationship = $attribute->nodeValue;
             break;
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:13,代码来源:MediaRestriction.php

示例8: takeAttributeFromDOM

 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'name':
             $name = explode(':', $attribute->nodeValue);
             $this->_name = end($name);
             break;
         case 'value':
             $this->_value = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:alanaipe2015,项目名称:moodle,代码行数:21,代码来源:Property.php

示例9: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'name':
             $this->_name = $attribute->nodeValue;
             break;
         case 'reasonCode':
             $this->_reasonCode = $attribute->nodeValue;
             break;
         case 'helpUrl':
             $this->_helpUrl = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:16,代码来源:State.php

示例10: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'url':
             $this->_url = $attribute->nodeValue;
             break;
         case 'width':
             $this->_width = $attribute->nodeValue;
             break;
         case 'height':
             $this->_height = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:16,代码来源:MediaPlayer.php

示例11: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         case 'rel':
             $this->_rel = $attribute->rel;
             break;
         case 'valueString':
             $this->_valueString = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:16,代码来源:Where.php

示例12: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'startTime':
             $this->_startTime = $attribute->nodeValue;
             break;
         case 'endTime':
             $this->_endTime = $attribute->nodeValue;
             break;
         case 'valueString':
             $this->_valueString = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:16,代码来源:When.php

示例13: takeAttributeFromDOM

 /**
  * Extracts XML attributes from the DOM and converts them to the
  * appropriate object members.
  *
  * @param DOMNode $attribute The DOMNode attribute to be handled.
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'primary':
             if (strtolower($attribute->nodeValue) == 'true') {
                 $this->_isPrimary = true;
             } else {
                 $this->_isPrimary = false;
             }
             break;
         case 'rel':
             $this->_addressType = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:23,代码来源:Address.php

示例14: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'value':
             if ($attribute->nodeValue == "true") {
                 $this->_value = true;
             } else {
                 if ($attribute->nodeValue == "false") {
                     $this->_value = false;
                 } else {
                     throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
                 }
             }
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:18,代码来源:QuickAdd.php

示例15: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'min':
             $this->_min = $attribute->nodeValue;
             break;
         case 'max':
             $this->_max = $attribute->nodeValue;
             break;
         case 'numRaters':
             $this->_numRaters = $attribute->nodeValue;
             break;
         case 'average':
             $this->_average = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:19,代码来源:Rating.php


注:本文中的Zend_Gdata_Extension::takeAttributeFromDOM方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。