/** * The index, or landing, action will be concerned with listing the entries * that already exist. * * Assuming the default route and default router, this action is dispatched * via the following urls: * - /guestbook/entry * - /guestbook/entry/index * * @return void */ public function indexAction() { $handler = new Default_Model_AclHandler_Entry(); $data = $handler->getList(array('entourage' => 'Creator')); //$result = Rest_Requestor::apiRequest('GET', '/entry-api/'); //$data = $result['content']; $this->view->data = $data; }
/** * @param array $id */ protected function _delete_pre_persist(array &$id) { // check for dependents require_once 'models/AclHandler/Entry.php'; $entriesHandler = new Default_Model_AclHandler_Entry(); $children = $entriesHandler->getList(array('where' => array('community_id' => $id['id']))); if ($children) { // ****************** // TODO, NOT DONE YET // ****************** } if (true) { throw new Rest_Model_ConflictException(''); } }