Exemplo n.º 1
0
 protected function getPagePath()
 {
     if ($this->_getParam('id') != "" && $this->_getParam('id') != 0) {
         $pagePath = Knowledgeroot_Page_Path::getPath($this->_getParam('id'));
         Zend_Layout::getMvcInstance()->assign('pathNavi', $pagePath);
     }
 }
Exemplo n.º 2
0
 /**
  * check if page is accessable
  */
 public static function isAccessable($pageId)
 {
     $path = Knowledgeroot_Page_Path::getPath($pageId);
     foreach ($path as $node) {
         if ($node->isDeleted()) {
             return false;
         }
     }
     return true;
 }