/** * prepare * * @param void * * @return bool **/ public function prepare() { $this->forum_id = (int) $this->mRoot->mContext->mRequest->getRequest('forum_id'); parent::prepare(); //adump($join); return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { $this->mfAccHandler =& $this->mAsset->getObject('handler', 'Forumaccess', false); $this->mForumAcc = $this->mfAccHandler->get_forum_all_permissions(); $this->mFilter = $this->_getFilterForm(); $mCriteria = $this->mFilter->getCriteria(); $mCriteria->add(new criteria('forum_id', $this->mForumAcc['can_read'], 'IN')); parent::prepare(); $this->_setupAccessController('forums'); $this->forum_id = (int) $this->mRoot->mContext->mRequest->getRequest('forum_id'); return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { parent::prepare(); $topic_id = (int) $this->mRoot->mContext->mRequest->getRequest('topic_id'); $handler = Legacy_Utils::getModuleHandler('topics', $this->mAsset->mDirname); $this->mTopicObj = $handler->getObjects($topic_id); //adump($this->mTopicObj); $forum_id = $this->mTopicObj->getShow('forum_id'); $handler = Legacy_Utils::getModuleHandler('forums', $this->mAsset->mDirname); $this->mForumObj = $handler->get($forum_id); //adump($this->mForumObj); // TODO: CATEGORY AND FORUM PERMISSION return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { parent::prepare(); return true; }
/** * prepare * * @param void * * @return bool **/ public function prepare() { //atrace(); exit; parent::prepare(); return true; }