|
|
@@ -1,18 +1,19 @@
|
|
|
<?php
|
|
|
|
|
|
class apiController extends ActionController {
|
|
|
- public function getFavoritesAction () {
|
|
|
+ public function firstAction() {
|
|
|
header('Content-type: application/json');
|
|
|
|
|
|
$this->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() {
|
|
|
+ }
|
|
|
}
|