コード例 #1
0
ファイル: MediaGroup.php プロジェクト: nhp/shopware-4
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_duration !== null) {
         $element->appendChild(
             $this->_duration->getDOM($element->ownerDocument));
     }
     if ($this->_private !== null) {
         $element->appendChild(
             $this->_private->getDOM($element->ownerDocument));
     }
     if ($this->_videoid != null) {
         $element->appendChild(
             $this->_videoid->getDOM($element->ownerDocument));
     }
     if ($this->_uploaded != null) {
         $element->appendChild(
             $this->_uploaded->getDOM($element->ownerDocument));
     }
     if ($this->_mediacredit != null) {
         $element->appendChild(
             $this->_mediacredit->getDOM($element->ownerDocument));
     }
     if ($this->_mediarating != null) {
         $element->appendChild(
             $this->_mediarating->getDOM($element->ownerDocument));
     }
     return $element;
 }