/** * @param \DOMNode|\DOMElement $node * @param int $menuId */ private function getEditXML($node, $menuId) { $menu = \Difra\Plugins\CMS\Menu::get($menuId); $node->setAttribute('depth', $menu->getDepth()); $parentsNode = $node->appendChild($this->xml->createElement('parents')); \Difra\Plugins\CMS::getInstance()->getMenuItemsXML($parentsNode, $menu->getId()); }
/** * Pages list */ public function indexAction() { $listNode = $this->root->appendChild($this->xml->createElement('CMSList')); \Difra\Plugins\CMS::getInstance()->getListXML($listNode); }