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


PHP Extension::getDOM方法代碼示例

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


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

示例1: 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->_pos !== null) {
         $element->appendChild($this->_pos->getDOM($element->ownerDocument));
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:17,代碼來源:GmlPoint.php

示例2: 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 ? "true" : "false");
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:18,代碼來源:SendEventNotifications.php

示例3: 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->_seconds !== null) {
         $element->setAttribute('seconds', $this->_seconds);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:18,代碼來源:Duration.php

示例4: 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->_relationship !== null) {
         $element->setAttribute('relationship', $this->_relationship);
     }
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:21,代碼來源:MediaRestriction.php

示例5: getDOM

 /**
  * Retrieves DOMElement which corresponds to this element and all
  * child properties. This is used to build this object back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistance.
  *
  * @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);
     if ($this->_lang !== null) {
         $element->setAttribute('lang', $this->_lang);
     }
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:21,代碼來源:Review.php

示例6: 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->_scheme !== null) {
         $element->setAttribute('scheme', $this->_scheme);
     }
     if ($this->_label !== null) {
         $element->setAttribute('label', $this->_label);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:21,代碼來源:MediaCategory.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 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->_familyName !== null) {
         $element->setAttribute('familyName', $this->_familyName);
     }
     if ($this->_givenName !== null) {
         $element->setAttribute('givenName', $this->_givenName);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:21,代碼來源:Name.php

示例8: 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->_url !== null) {
         $element->setAttribute('url', $this->_url);
     }
     if ($this->_width !== null) {
         $element->setAttribute('width', $this->_width);
     }
     if ($this->_height !== null) {
         $element->setAttribute('height', $this->_height);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:24,代碼來源:MediaPlayer.php

示例9: 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->_name !== null) {
         $element->setAttribute('name', $this->_name);
     }
     if ($this->_reasonCode !== null) {
         $element->setAttribute('reasonCode', $this->_reasonCode);
     }
     if ($this->_helpUrl !== null) {
         $element->setAttribute('helpUrl', $this->_helpUrl);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:24,代碼來源:State.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 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->_url !== null) {
         $element->setAttribute('url', $this->_url);
     }
     if ($this->_fileSize !== null) {
         $element->setAttribute('fileSize', $this->_fileSize);
     }
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     if ($this->_medium !== null) {
         $element->setAttribute('medium', $this->_medium);
     }
     if ($this->_isDefault !== null) {
         $element->setAttribute('isDefault', $this->_isDefault);
     }
     if ($this->_expression !== null) {
         $element->setAttribute('expression', $this->_expression);
     }
     if ($this->_bitrate !== null) {
         $element->setAttribute('bitrate', $this->_bitrate);
     }
     if ($this->_framerate !== null) {
         $element->setAttribute('framerate', $this->_framerate);
     }
     if ($this->_samplingrate !== null) {
         $element->setAttribute('samplingrate', $this->_samplingrate);
     }
     if ($this->_channels !== null) {
         $element->setAttribute('channels', $this->_channels);
     }
     if ($this->_duration !== null) {
         $element->setAttribute('duration', $this->_duration);
     }
     if ($this->_height !== null) {
         $element->setAttribute('height', $this->_height);
     }
     if ($this->_width !== null) {
         $element->setAttribute('width', $this->_width);
     }
     if ($this->_lang !== null) {
         $element->setAttribute('lang', $this->_lang);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:57,代碼來源:MediaContent.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);
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:15,代碼來源:PrivateExtension.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 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->_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:bradley-holt,項目名稱:zf2,代碼行數:44,代碼來源:Tags.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, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_username !== null) {
         $element->setAttribute('userName', $this->_username);
     }
     if ($this->_password !== null) {
         $element->setAttribute('password', $this->_password);
     }
     if ($this->_hashFunctionName !== null) {
         $element->setAttribute('hashFunctionName', $this->_hashFunctionName);
     }
     if ($this->_admin !== null) {
         $element->setAttribute('admin', $this->_admin ? "true" : "false");
     }
     if ($this->_agreedToTerms !== null) {
         $element->setAttribute('agreedToTerms', $this->_agreedToTerms ? "true" : "false");
     }
     if ($this->_suspended !== null) {
         $element->setAttribute('suspended', $this->_suspended ? "true" : "false");
     }
     if ($this->_changePasswordAtNextLogin !== null) {
         $element->setAttribute('changePasswordAtNextLogin', $this->_changePasswordAtNextLogin ? "true" : "false");
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:36,代碼來源:Login.php

示例14: 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->_videoWatchCount !== null) {
         $element->setAttribute('watchCount', $this->_videoWatchCount);
     }
     if ($this->_viewCount !== null) {
         $element->setAttribute('viewCount', $this->_viewCount);
     }
     if ($this->_subscriberCount !== null) {
         $element->setAttribute('subscriberCount', $this->_subscriberCount);
     }
     if ($this->_lastWebAccess !== null) {
         $element->setAttribute('lastWebAccess', $this->_lastWebAccess);
     }
     if ($this->_favoriteCount !== null) {
         $element->setAttribute('favoriteCount', $this->_favoriteCount);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:30,代碼來源:Statistics.php

示例15: getDOM

 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     $element->setAttribute('row', $this->_row);
     $element->setAttribute('col', $this->_col);
     if ($this->_inputValue) {
         $element->setAttribute('inputValue', $this->_inputValue);
     }
     if ($this->_numericValue) {
         $element->setAttribute('numericValue', $this->_numericValue);
     }
     return $element;
 }
開發者ID:bradley-holt,項目名稱:zf2,代碼行數:13,代碼來源:Cell.php


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