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


PHP Zend_Gdata_App_Extension類代碼示例

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


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

示例1: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('app') . ':' . 'draft':
             $draft = new Zend_Gdata_App_Extension_Draft();
             $draft->transferFromDOM($child);
             $this->_draft = $draft;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
開發者ID:vojtajina,項目名稱:sitellite,代碼行數:14,代碼來源:Control.php

示例2: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('atom') . ':' . 'name':
             $name = new Zend_Gdata_App_Extension_Name();
             $name->transferFromDOM($child);
             $this->_name = $name;
             break;
         case $this->lookupNamespace('atom') . ':' . 'email':
             $email = new Zend_Gdata_App_Extension_Email();
             $email->transferFromDOM($child);
             $this->_email = $email;
             break;
         case $this->lookupNamespace('atom') . ':' . 'uri':
             $uri = new Zend_Gdata_App_Extension_Uri();
             $uri->transferFromDOM($child);
             $this->_uri = $uri;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:24,代碼來源:Person.php

示例3: transferFromDOM

 public function transferFromDOM($node)
 {
     parent::transferFromDOM($node);
     $this->_rootNamespace = null;
     $this->_rootNamespaceURI = $node->namespaceURI;
     $this->_rootElement = $node->localName;
 }
開發者ID:dalinhuang,項目名稱:popo,代碼行數:7,代碼來源:Element.php

示例4: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         case 'hreflang':
             $this->_hrefLang = $attribute->nodeValue;
             break;
         case 'title':
             $this->_title = $attribute->nodeValue;
             break;
         case 'length':
             $this->_length = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:25,代碼來源:Link.php

示例5: __construct

 public function __construct()
 {
     $this->registerNamespace('gd', 'http://schemas.google.com/g/2005');
     $this->registerNamespace('openSearch', 'http://a9.com/-/spec/opensearchrss/1.0/', 1, 0);
     $this->registerNamespace('openSearch', 'http://a9.com/-/spec/opensearch/1.1/', 2, 0);
     $this->registerNamespace('rss', 'http://blogs.law.harvard.edu/tech/rss');
     parent::__construct();
 }
開發者ID:hackingman,項目名稱:TubeX,代碼行數:8,代碼來源:Extension.php

示例6: __construct

 public function __construct()
 {
     /* NOTE: namespaces must be registered before calling parent */
     $this->registerNamespace('openSearch', 'http://a9.com/-/spec/opensearchrss/1.0/');
     $this->registerNamespace('rss', 'http://blogs.law.harvard.edu/tech/rss');
     $this->registerNamespace('gd', 'http://schemas.google.com/g/2005');
     parent::__construct();
 }
開發者ID:jorgenils,項目名稱:zend-framework,代碼行數:8,代碼來源:Extension.php

示例7: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:beingsane,項目名稱:Zend_Framework_for_Joomla,代碼行數:10,代碼來源:Text.php

示例8: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'uri':
             $this->_uri = $attribute->nodeValue;
             break;
         case 'version':
             $this->_version = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:chucky515,項目名稱:Magento-CE-Mirror,代碼行數:13,代碼來源:Generator.php

示例9: takeAttributeFromDOM

 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'term':
             $this->_term = $attribute->nodeValue;
             break;
         case 'scheme':
             $this->_scheme = $attribute->nodeValue;
             break;
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
開發者ID:omusico,項目名稱:sugar_work,代碼行數:16,代碼來源:Category.php

示例10: takeAttributeFromDOM

 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:hackingman,項目名稱:TubeX,代碼行數:16,代碼來源:WebContent.php

示例11: __construct

 public function __construct($text = null)
 {
     parent::__construct();
     $this->_text = $text;
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:5,代碼來源:Email.php

示例12: 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);
     return $element;
 }
開發者ID:crodriguezn,項目名稱:crossfit-milagro,代碼行數:15,代碼來源:Token.php

示例13: 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)
 {
     $element = parent::getDOM($doc);
     return $element;
 }
開發者ID:omusico,項目名稱:sugar_work,代碼行數:15,代碼來源:Token.php


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