public function getNode($xml) { $node = parent::getNode($xml); if ($this->screen) { $node->appendChild($this->screen->getNode($xml, false)); } return $node; }
/** * 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); if ($root) { $rootNode = $this->getRootNode($xml); $rootNode->setAttribute('type', 'list'); $rootNode->setAttribute('title', $this->title); $rootNode->appendChild($node); $node = $rootNode; } return $node; }
/** * 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); $mapNode = new AppBuilderAPIElement('map'); $mapNode->setAttribute('title', $this->title); $this->applyStyle($mapNode); $mapNode = $mapNode->getNode($xml); $mapNode->appendChild($node); $itemsNode = new AppBuilderAPIElement('items'); $this->applyStyle($itemsNode); $itemsNode = $itemsNode->getNode($xml); $itemsNode->appendChild($mapNode); $node = $itemsNode; if ($root) { $rootNode = $this->getRootNode($xml); $rootNode->setAttribute('type', 'map'); $rootNode->appendChild($node); $node = $rootNode; } return $node; }
/** * Get a screen as xml * @deprecated since version 2.0 * @param AppBuilderAPIScreen $screen * @return DOMDocument */ public static function getScreenAsDOMNode($screen) { $xml = self::getNewXMLDocument(); $node = $screen->getNode($xml); $xml->appendChild($node); return $xml; }