コード例 #1
0
ファイル: IndexController.php プロジェクト: Cryde/sydney-core
 /**
  * @return void
  */
 public function editadvancedpropertiesAction()
 {
     // Layout optionnel li� � l'instance et d�fini dans le default.config.ini
     $this->view->layoutsopt = isset($this->_config->general->layoutsopt) ? preg_split('/,/', $this->_config->general->layoutsopt) : array();
     $nodes = new Pagstructure();
     $where = 'id = ' . $this->getRequest()->id . ' AND safinstances_id = ' . $this->safinstancesId;
     $this->view->node = $nodes->fetchRow($where);
     if ($this->view->node) {
         $pgs = new Pagstructure();
         $this->view->structureArray = $pgs->toArray($this->safinstancesId);
         $this->view->pagid = $this->getRequest()->id;
         $this->view->menusArray = $this->getMenusArray($this->getRequest()->id, false);
         $this->view->editType = 'advanced';
         $this->setSubtitle2($this->view->node->label);
         $this->setSubtitle('Advanced properties');
         $this->setSideBar('settings', 'pages');
         $this->render('advancedproperties');
     } else {
         $this->render('index');
     }
 }
コード例 #2
0
 public function internlinkbrowserAction()
 {
     $pages = new Pagstructure();
     $this->view->structureArray = $pages->toArray($this->safinstancesId);
 }