diff options
| author | 2013-06-15 13:13:20 +0200 | |
|---|---|---|
| committer | 2013-06-15 13:13:20 +0200 | |
| commit | 215b0a564e00874367a2730f204f967a1c336ebc (patch) | |
| tree | c3b51c41f1db3beb7577de978ab230113d69ecb8 /app/controllers/apiController.php | |
| parent | e5637cb1ed2ff0e284eea0bae32f2e7135c89716 (diff) | |
Suppression du contrôleur API qui ne servait à rien
Diffstat (limited to 'app/controllers/apiController.php')
| -rwxr-xr-x | app/controllers/apiController.php | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app/controllers/apiController.php b/app/controllers/apiController.php deleted file mode 100755 index 025908f3e..000000000 --- a/app/controllers/apiController.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -class apiController extends ActionController { - public function firstAction() { - header('Content-type: application/json'); - - $this->view->_useLayout (false); - } - - public function getPublicFeedAction () { - $entryDAO = new EntryDAO (); - $entryDAO->_nbItemsPerPage (-1); - - $entries_tmp = $entryDAO->listPublic ('low_to_high'); - - $entries = array (); - foreach ($entries_tmp as $e) { - $author = $e->author (); - - $notes = $e->notes (); - if ($notes == '') { - $feed = $e->feed (true); - if($author != '') { - $notes = Translate::t ('article_published_on_author', $feed->website (), $feed->name (), $author); - } else { - $notes = Translate::t ('article_published_on', $feed->website (), $feed->name ()); - } - } - - $id = $e->id (); - $entries[$id] = array (); - $entries[$id]['title'] = $e->title (); - $entries[$id]['content'] = $notes; - $entries[$id]['date'] = $e->date (true); - $entries[$id]['lastUpdate'] = $e->lastUpdate (true); - $entries[$id]['tags'] = $e->tags (); - $entries[$id]['url'] = $e->link (); - $entries[$id]['type'] = 'url'; - } - - $this->view->entries = $entries; - } - - public function getNbNotReadAction() { - } -} |
