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); } }
/** * 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; }