/** * Returns the feed item (dto) with it's content. * */ public function getFeedContentAction() { /** * @see Conjoon_Modules_Groupware_Feeds_Item_Facade */ require_once 'Conjoon/Modules/Groupware/Feeds/Item/Facade.php'; $item = Conjoon_Modules_Groupware_Feeds_Item_Facade::getInstance()->getFeedContent($this->_request->getParam('id'), $this->_request->getParam('groupwareFeedsAccountsId'), $this->_helper->registryAccess()->getUserId()); if ($item == null) { /** * @see Conjoon_Error_Factory */ require_once 'Conjoon/Error/Factory.php'; $this->view->success = false; $this->view->item = null; $this->view->error = Conjoon_Error_Factory::createError("The requested feed item was not found on the server.", Conjoon_Error::LEVEL_ERROR, Conjoon_Error::DATA)->getDto(); } else { $this->view->success = true; $this->view->item = $item; $this->view->error = null; } }
/** * * @return Conjoon_Modules_Groupware_Feeds_Item_Facade */ private function _getItemFacade() { if (!$this->_itemFacade) { /** * @see Conjoon_Modules_Groupware_Feeds_Item_Facade */ require_once 'Conjoon/Modules/Groupware/Feeds/Item/Facade.php'; $this->_itemFacade = Conjoon_Modules_Groupware_Feeds_Item_Facade::getInstance(); } return $this->_itemFacade; }