コード例 #1
0
 /**
  * Get the xml element for this item
  * @param DOMDocument $xml
  * @return DOMElement
  * @deprecated since version 2.0
  */
 public function getNode($xml, $root = true)
 {
     $node = parent::getNode($xml);
     foreach ($this->children as $key => $child) {
         $n = $child->getNode($xml);
         $node->appendChild($n);
         if ($child->getHrAfter() && !$this->children[$key + 1] instanceof AppBuilderAPIHrItem) {
             $hr = new AppBuilderAPIHrItem();
             $hr->setColor($child->getStyle('hrcolor'));
             $hr->setHeight($child->getStyle('hrheight'));
             $node->appendChild($hr->getNode($xml));
         }
     }
     return $node;
 }