當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。