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


PHP Zend_Gdata_Extension類代碼示例

本文整理匯總了PHP中Zend_Gdata_Extension的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Gdata_Extension類的具體用法?PHP Zend_Gdata_Extension怎麽用?PHP Zend_Gdata_Extension使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'when':
             $when = new Zend_Gdata_Extension_When();
             $when->transferFromDOM($child);
             $this->_when = $when;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:14,代碼來源:OriginalEvent.php

示例2: __construct

 /**
  * Constructs a new MediaKeywords element
  */
 public function __construct()
 {
     foreach (Zend_Gdata_Media::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
     parent::__construct();
 }
開發者ID:dalinhuang,項目名稱:popo,代碼行數:10,代碼來源:MediaKeywords.php

示例3: getDOM

 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_distance !== null) {
         $element->appendChild($this->_distance->getDOM($element->ownerDocument));
     }
     if ($this->_exposure !== null) {
         $element->appendChild($this->_exposure->getDOM($element->ownerDocument));
     }
     if ($this->_flash !== null) {
         $element->appendChild($this->_flash->getDOM($element->ownerDocument));
     }
     if ($this->_focalLength !== null) {
         $element->appendChild($this->_focalLength->getDOM($element->ownerDocument));
     }
     if ($this->_fStop !== null) {
         $element->appendChild($this->_fStop->getDOM($element->ownerDocument));
     }
     if ($this->_imageUniqueId !== null) {
         $element->appendChild($this->_imageUniqueId->getDOM($element->ownerDocument));
     }
     if ($this->_iso !== null) {
         $element->appendChild($this->_iso->getDOM($element->ownerDocument));
     }
     if ($this->_make !== null) {
         $element->appendChild($this->_make->getDOM($element->ownerDocument));
     }
     if ($this->_model !== null) {
         $element->appendChild($this->_model->getDOM($element->ownerDocument));
     }
     if ($this->_time !== null) {
         $element->appendChild($this->_time->getDOM($element->ownerDocument));
     }
     return $element;
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:35,代碼來源:Tags.php

示例4: 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

示例5: __construct

 /**
  * Constructs a new Zend_Gdata_YouTube_Extension_VideoShare object.
  * @param bool $enabled(optional) The enabled value of the element.
  */
 public function __construct($enabled = null)
 {
     foreach (Zend_Gdata_YouTube::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
     parent::__construct();
 }
開發者ID:Anthony2909,項目名稱:midocu,代碼行數:11,代碼來源:NoEmbed.php

示例6: __construct

 /**
  * Constructs a new Zend_Gdata_Spreadsheets_Extension_ColCount element.
  * @param string $text (optional) Text contents of the element.
  */
 public function __construct($text = null)
 {
     parent::__construct();
     $this->_text = $text;
     foreach (Zend_Gdata_Spreadsheets::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
 }
開發者ID:vojtajina,項目名稱:sitellite,代碼行數:12,代碼來源:ColCount.php

示例7: getDOM

 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  *          child properties.
  */
 public function getDOM($doc = null)
 {
     $element = parent::getDOM($doc);
     if ($this->_pos !== null) {
         $element->appendChild($this->_pos->getDOM($element->ownerDocument));
     }
     return $element;
 }
開發者ID:dalinhuang,項目名稱:popo,代碼行數:17,代碼來源:GmlPoint.php

示例8: __toString

 public function __toString()
 {
     if ($this->_valueString != null) {
         return $this->_valueString;
     } else {
         return parent::__toString();
     }
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:8,代碼來源:Where.php

示例9: __construct

 /**
  * Constructor for Zend_Gdata_DublinCore_Extension_Creator which
  * Entity primarily responsible for making the resource
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($value = null)
 {
     foreach (Zend_Gdata_DublinCore::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
     parent::__construct();
     $this->_text = $value;
 }
開發者ID:Anthony2909,項目名稱:midocu,代碼行數:15,代碼來源:Creator.php

示例10: getDOM

 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  *          child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_point !== null) {
         $element->appendChild($this->_point->getDOM($element->ownerDocument));
     }
     return $element;
 }
開發者ID:evgeniarudoman,項目名稱:magento-ce-1.9,代碼行數:17,代碼來源:GeoRssWhere.php

示例11: getDOM

 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  * child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_value != null) {
         $element->setAttribute('value', $this->_value);
     }
     return $element;
 }
開發者ID:jkimdon,項目名稱:cohomeals,代碼行數:18,代碼來源:TableId.php

示例12: __construct

 /**
  * Constructs a new Zend_Gdata_Photos_Extension_Nickname object.
  * 
  * @param string $text (optional) The value being represented.
  */
 public function __construct($text = null)
 {
     foreach (Zend_Gdata_Photos::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
     parent::__construct();
     $this->setText($text);
 }
開發者ID:gauravstomar,項目名稱:Pepool,代碼行數:13,代碼來源:Nickname.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 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

示例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
  */
 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

示例15: 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:jorgenils,項目名稱:zend-framework,代碼行數:13,代碼來源:OriginalEvent.php


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