當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Extension::takeAttributeFromDOM方法代碼示例

本文整理匯總了PHP中ZendGData\Extension::takeAttributeFromDOM方法的典型用法代碼示例。如果您正苦於以下問題:PHP Extension::takeAttributeFromDOM方法的具體用法?PHP Extension::takeAttributeFromDOM怎麽用?PHP Extension::takeAttributeFromDOM使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ZendGData\Extension的用法示例。


在下文中一共展示了Extension::takeAttributeFromDOM方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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:hybridneo,項目名稱:zendgdata,代碼行數:17,代碼來源:ACLRole.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 'scheme':
             $this->_scheme = $attribute->nodeValue;
             break;
         case 'country':
             $this->_country = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:20,代碼來源:MediaRating.php

示例3: 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:hybridneo,項目名稱:zendgdata,代碼行數:13,代碼來源:OriginalEvent.php

示例4: 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 'relationship':
             $this->_relationship = $attribute->nodeValue;
             break;
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:20,代碼來源:MediaRestriction.php

示例5: 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':
             if ($attribute->nodeValue != "true" && $attribute->nodeValue != "false") {
                 throw new \ZendGData\App\InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
             }
             $this->_specialized = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:20,代碼來源:RecurrenceException.php

示例6: 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:hybridneo,項目名稱:zendgdata,代碼行數:21,代碼來源:Property.php

示例7: 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':
             if ($attribute->nodeValue == "true") {
                 $this->_value = true;
             } elseif ($attribute->nodeValue == "false") {
                 $this->_value = false;
             } else {
                 throw new \ZendGData\App\InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
             }
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:23,代碼來源:Hidden.php

示例8: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         case 'valueString':
             $this->_valueString = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:16,代碼來源:Where.php

示例9: 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:hybridneo,項目名稱:zendgdata,代碼行數:16,代碼來源:When.php

示例10: 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 'url':
             $this->_url = $attribute->nodeValue;
             break;
         case 'height':
             $this->_height = $attribute->nodeValue;
             break;
         case 'width':
             $this->_width = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:23,代碼來源:WebContent.php

示例11: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'absoluteTime':
             $this->_absoluteTime = $attribute->nodeValue;
             break;
         case 'method':
             $this->_method = $attribute->nodeValue;
             break;
         case 'days':
             $this->_days = $attribute->nodeValue;
             break;
         case 'hours':
             $this->_hours = $attribute->nodeValue;
             break;
         case 'minutes':
             $this->_minutes = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:22,代碼來源:Reminder.php

示例12: 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 'url':
             $this->_url = $attribute->nodeValue;
             break;
         case 'fileSize':
             $this->_fileSize = $attribute->nodeValue;
             break;
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         case 'medium':
             $this->_medium = $attribute->nodeValue;
             break;
         case 'isDefault':
             $this->_isDefault = $attribute->nodeValue;
             break;
         case 'expression':
             $this->_expression = $attribute->nodeValue;
             break;
         case 'bitrate':
             $this->_bitrate = $attribute->nodeValue;
             break;
         case 'framerate':
             $this->_framerate = $attribute->nodeValue;
             break;
         case 'samplingrate':
             $this->_samplingrate = $attribute->nodeValue;
             break;
         case 'channels':
             $this->_channels = $attribute->nodeValue;
             break;
         case 'duration':
             $this->_duration = $attribute->nodeValue;
             break;
         case 'height':
             $this->_height = $attribute->nodeValue;
             break;
         case 'width':
             $this->_width = $attribute->nodeValue;
             break;
         case 'lang':
             $this->_lang = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:56,代碼來源:MediaContent.php

示例13: takeAttributeFromDOM

 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and valueare
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     parent::takeAttributeFromDOM($attribute);
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:11,代碼來源:PrivateExtension.php

示例14: 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
  * @throws \ZendGData\App\InvalidArgumentException
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'userName':
             $this->_username = $attribute->nodeValue;
             break;
         case 'password':
             $this->_password = $attribute->nodeValue;
             break;
         case 'hashFunctionName':
             $this->_hashFunctionName = $attribute->nodeValue;
             break;
         case 'admin':
             if ($attribute->nodeValue == "true") {
                 $this->_admin = true;
             } elseif ($attribute->nodeValue == "false") {
                 $this->_admin = false;
             } else {
                 throw new App\InvalidArgumentException("Expected 'true' or 'false' for apps:login#admin.");
             }
             break;
         case 'agreedToTerms':
             if ($attribute->nodeValue == "true") {
                 $this->_agreedToTerms = true;
             } elseif ($attribute->nodeValue == "false") {
                 $this->_agreedToTerms = false;
             } else {
                 throw new App\InvalidArgumentException("Expected 'true' or 'false' for apps:login#agreedToTerms.");
             }
             break;
         case 'suspended':
             if ($attribute->nodeValue == "true") {
                 $this->_suspended = true;
             } elseif ($attribute->nodeValue == "false") {
                 $this->_suspended = false;
             } else {
                 throw new App\InvalidArgumentException("Expected 'true' or 'false' for apps:login#suspended.");
             }
             break;
         case 'changePasswordAtNextLogin':
             if ($attribute->nodeValue == "true") {
                 $this->_changePasswordAtNextLogin = true;
             } elseif ($attribute->nodeValue == "false") {
                 $this->_changePasswordAtNextLogin = false;
             } else {
                 throw new App\InvalidArgumentException("Expected 'true' or 'false' for apps:login#changePasswordAtNextLogin.");
             }
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:60,代碼來源:Login.php

示例15: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'row':
             $this->_row = $attribute->nodeValue;
             break;
         case 'col':
             $this->_col = $attribute->nodeValue;
             break;
         case 'inputValue':
             $this->_inputValue = $attribute->nodeValue;
             break;
         case 'numericValue':
             $this->_numericValue = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hybridneo,項目名稱:zendgdata,代碼行數:19,代碼來源:Cell.php


注:本文中的ZendGData\Extension::takeAttributeFromDOM方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。