From 57c0a448f5460240708f29bf1a083354ad894689 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 1 Mar 2013 00:55:00 +0100 Subject: Ajout nombre d'articles non lus à l'API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/apiController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/controllers/apiController.php') diff --git a/app/controllers/apiController.php b/app/controllers/apiController.php index 88b968cb9..5ef0f5b03 100755 --- a/app/controllers/apiController.php +++ b/app/controllers/apiController.php @@ -1,18 +1,19 @@ view->_useLayout (false); + } + public function getFavoritesAction () { $entryDAO = new EntryDAO (); $entryDAO->_nbItemsPerPage (-1); $entries_tmp = $entryDAO->listFavorites ('all', 'low_to_high'); $entries = array (); - foreach ($entries_tmp as $e) { $author = $e->author (); $feed = $e->feed (true); @@ -32,7 +33,10 @@ class apiController extends ActionController { $entries[$id]['url'] = $e->link (); $entries[$id]['type'] = 'url'; } - + $this->view->entries = $entries; } + + public function getNbNotReadAction() { + } } -- cgit v1.2.3