当前位置: 首页>>代码示例>>PHP>>正文


PHP Extension::getDOM方法代码示例

本文整理汇总了PHP中Zend\GData\Extension::getDOM方法的典型用法代码示例。如果您正苦于以下问题:PHP Extension::getDOM方法的具体用法?PHP Extension::getDOM怎么用?PHP Extension::getDOM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\GData\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 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:niallmccrudden,项目名称:zf2,代码行数:18,代码来源:Hidden.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 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:alab1001101,项目名称:zf2,代码行数:17,代码来源:GeoRssWhere.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->_limit !== null) {
         $element->setAttribute('limit', $this->_limit);
     }
     return $element;
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:18,代码来源:Quota.php

示例4: 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->_value !== null) {
         $element->setAttribute('value', $this->_value);
     }
     return $element;
 }
开发者ID:rexmac,项目名称:zf2,代码行数:18,代码来源:Viewability.php

示例5: 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:rexmac,项目名称:zf2,代码行数:21,代码来源:MediaRestriction.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->_familyName !== null) {
         $element->setAttribute('familyName', $this->_familyName);
     }
     if ($this->_givenName !== null) {
         $element->setAttribute('givenName', $this->_givenName);
     }
     return $element;
 }
开发者ID:rafalwrzeszcz,项目名称:zf2,代码行数:21,代码来源:Name.php

示例7: 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:niallmccrudden,项目名称:zf2,代码行数:21,代码来源:Review.php

示例8: getDOM

 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_feedLink !== null) {
         $element->appendChild($this->_feedLink->getDOM($element->ownerDocument));
     }
     return $element;
 }
开发者ID:niallmccrudden,项目名称:zf2,代码行数:11,代码来源:Comments.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->_scheme !== null) {
         $element->setAttribute('scheme', $this->_scheme);
     }
     if ($this->_label !== null) {
         $element->setAttribute('label', $this->_label);
     }
     return $element;
 }
开发者ID:rafalwrzeszcz,项目名称:zf2,代码行数:21,代码来源:MediaCategory.php

示例10: 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:robertodormepoco,项目名称:zf2,代码行数:13,代码来源:Cell.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->_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:rafalwrzeszcz,项目名称:zf2,代码行数:24,代码来源:State.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);
     if ($this->_specialized !== null) {
         $element->setAttribute('specialized', $this->_specialized);
     }
     if ($this->_entryLink !== null) {
         $element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
     }
     if ($this->_originalEvent !== null) {
         $element->appendChild($this->_originalEvent->getDOM($element->ownerDocument));
     }
     return $element;
 }
开发者ID:niallmccrudden,项目名称:zf2,代码行数:24,代码来源:RecurrenceException.php

示例13: getDOM

 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_id !== null) {
         $element->setAttribute('id', $this->_id);
     }
     if ($this->_href !== null) {
         $element->setAttribute('href', $this->_href);
     }
     if ($this->_when !== null) {
         $element->appendChild($this->_when->getDOM($element->ownerDocument));
     }
     return $element;
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:14,代码来源:OriginalEvent.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->_role !== null) {
         $element->setAttribute('role', $this->_role);
     }
     if ($this->_scheme !== null) {
         $element->setAttribute('scheme', $this->_scheme);
     }
     if ($this->_yttype !== null) {
         $element->setAttributeNS('http://gdata.youtube.com/schemas/2007', 'yt:type', $this->_yttype);
     }
     return $element;
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:24,代码来源:MediaCredit.php

示例15: 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->height != null) {
         $element->setAttribute('height', $this->_height);
     }
     if ($this->width != null) {
         $element->setAttribute('width', $this->_width);
     }
     return $element;
 }
开发者ID:rafalwrzeszcz,项目名称:zf2,代码行数:24,代码来源:WebContent.php


注:本文中的Zend\GData\Extension::getDOM方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。