コード例 #1
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_generator != null) {
         $element->appendChild($this->_generator->getDOM($element->ownerDocument));
     }
     if ($this->_icon != null) {
         $element->appendChild($this->_icon->getDOM($element->ownerDocument));
     }
     if ($this->_logo != null) {
         $element->appendChild($this->_logo->getDOM($element->ownerDocument));
     }
     if ($this->_subtitle != null) {
         $element->appendChild($this->_subtitle->getDOM($element->ownerDocument));
     }
     return $element;
 }
コード例 #2
0
ファイル: Entry.php プロジェクト: hybridneo/zendgdata
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_content != null) {
         $element->appendChild($this->_content->getDOM($element->ownerDocument));
     }
     if ($this->_published != null) {
         $element->appendChild($this->_published->getDOM($element->ownerDocument));
     }
     if ($this->_source != null) {
         $element->appendChild($this->_source->getDOM($element->ownerDocument));
     }
     if ($this->_summary != null) {
         $element->appendChild($this->_summary->getDOM($element->ownerDocument));
     }
     if ($this->_control != null) {
         $element->appendChild($this->_control->getDOM($element->ownerDocument));
     }
     if ($this->_edited != null) {
         $element->appendChild($this->_edited->getDOM($element->ownerDocument));
     }
     return $element;
 }