Esempio n. 1
0
 /**
  * _setupAccessController
  *
  * @param	string	$dataname
  *
  * @return	void
  **/
 protected function _setupAccessController($dataname)
 {
     //adump('AccessController Start');
     $this->mAccessController['main'] = Xcforum_Utils::getAccessControllerObject($this->mDirname, $dataname);
     $idList['view'] = $this->mAccessController['main']->getPermittedIdList(Xcforum_AbstractAccessController::VIEW, 0);
     //adump('AccessController End');
     $idList['post'] = $this->mAccessController['main']->getPermittedIdList(Xcforum_AbstractAccessController::POST, 0);
     $idList['manage'] = $this->mAccessController['main']->getPermittedIdList(Xcforum_AbstractAccessController::MANAGE, 0);
     $this->fIdList4Cat['view'] = $this->_getForumid4Cats($idList['view']);
     $this->fIdList4Cat['post'] = $this->_getForumid4Cats($idList['post']);
     $this->fIdList4Cat['manage'] = $this->_getForumid4Cats($idList['manage']);
 }
 /**
  * _setupAccessController
  * 
  * @param	string	$dataname
  * 
  * @return	void
  **/
 protected function _setupAccessController($dataname)
 {
     $this->mAccessController['main'] = Xcforum_Utils::getAccessControllerObject($this->mAsset->mDirname, $dataname);
 }