コード例 #1
0
ファイル: Control.php プロジェクト: alab1001101/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_draft != null) {
         $element->appendChild($this->_draft->getDOM($element->ownerDocument));
     }
     return $element;
 }
コード例 #2
0
ファイル: Text.php プロジェクト: rexmac/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     return $element;
 }
コード例 #3
0
ファイル: Generator.php プロジェクト: rexmac/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_uri !== null) {
         $element->setAttribute('uri', $this->_uri);
     }
     if ($this->_version !== null) {
         $element->setAttribute('version', $this->_version);
     }
     return $element;
 }
コード例 #4
0
ファイル: Category.php プロジェクト: rafalwrzeszcz/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_term !== null) {
         $element->setAttribute('term', $this->_term);
     }
     if ($this->_scheme !== null) {
         $element->setAttribute('scheme', $this->_scheme);
     }
     if ($this->_label !== null) {
         $element->setAttribute('label', $this->_label);
     }
     return $element;
 }
コード例 #5
0
ファイル: Person.php プロジェクト: rafalwrzeszcz/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_name != null) {
         $element->appendChild($this->_name->getDOM($element->ownerDocument));
     }
     if ($this->_email != null) {
         $element->appendChild($this->_email->getDOM($element->ownerDocument));
     }
     if ($this->_uri != null) {
         $element->appendChild($this->_uri->getDOM($element->ownerDocument));
     }
     return $element;
 }
コード例 #6
0
ファイル: WebContent.php プロジェクト: alab1001101/zf2
 /**
  * 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;
 }
コード例 #7
0
ファイル: Link.php プロジェクト: rafalwrzeszcz/zf2
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_href !== null) {
         $element->setAttribute('href', $this->_href);
     }
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     if ($this->_hrefLang !== null) {
         $element->setAttribute('hreflang', $this->_hrefLang);
     }
     if ($this->_title !== null) {
         $element->setAttribute('title', $this->_title);
     }
     if ($this->_length !== null) {
         $element->setAttribute('length', $this->_length);
     }
     return $element;
 }
コード例 #8
0
ファイル: Token.php プロジェクト: niallmccrudden/zf2
 /**
  * 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;
 }