예제 #1
0
파일: menu.php 프로젝트: difra-org/difra
 /**
  * @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());
 }
예제 #2
0
파일: pages.php 프로젝트: difra-org/difra
 /**
  * Pages list
  */
 public function indexAction()
 {
     $listNode = $this->root->appendChild($this->xml->createElement('CMSList'));
     \Difra\Plugins\CMS::getInstance()->getListXML($listNode);
 }