/** * _setupObject * * @param void * * @return bool * * @private **/ protected function _setupObject() { $categoryIds = null; $objects = array(); $catIdArr = array(); //get block options $limit = $this->getBlockOption('limit'); //get module asset for handlers $asset = null; XCube_DelegateUtils::call('Module.xcforum.Global.Event.GetAssetManager', new XCube_Ref($asset), $this->_mBlock->get('dirname')); $this->_mHandler =& $asset->getObject('handler', 'topics'); $categoryArr = null; if (trim($this->getBlockOption('catIds'))) { $categoryArr['dirname'] = Xcforum_Utils::getAccessController($this->_mBlock->get('dirname'))->get('dirname'); $categoryArr['id'] = explode(',', $this->getBlockOption('catIds')); } $attributes = array(); // $this->_mObject = $this->_mHandler->getComments($categoryArr, null, null, $this->getBlockOption('limit')); $this->_mObject = $this->_mHandler->getTopicsObj($attributes, '', $limit, 0); return true; }