Ejemplo n.º 1
0
 /**
  * @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());
 }
Ejemplo n.º 2
0
 /**
  * Pages list
  */
 public function indexAction()
 {
     $listNode = $this->root->appendChild($this->xml->createElement('CMSList'));
     \Difra\Plugins\CMS::getInstance()->getListXML($listNode);
 }