function authors_directory() { global $authors; $author = new Authors(); $authors = $author->find("WHERE directory = '1'"); global $staff; $staff = $author->find("WHERE directory = '2'"); render(); }
public function delete($id) { if (!($feedback = Authors::find($id))) { throw new RestException(404, 'feedback not found'); } $feedback->delete(); return ['success' => true]; }
public function testAction() { $authors = new Authors(); $me = $authors->find(1)->current(); echo '<span>' . $me->name() . '</span>'; $meAgain = $authors->fetchRow('id = 3'); $pubs = $meAgain->findDependentRowset('Entry')->toArray(); //Zend_Debug::dump($pubs); // list of entries by tag "Test tag 1" $tags = new Tags(); $firstTag = $tags->fetchRow('id = 2'); $tagEntries = $firstTag->findManyToManyRowset('Entry', 'TagsLinks')->toArray(); //Zend_Debug::dump($tagEntries); }