aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/apiController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-07-04 19:38:29 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-07-04 19:38:29 +0200
commiteb5f05304c253df90873b94ba52d7093115f3850 (patch)
tree1152ab618aa5cf884a1f2f2e2d1926da4167a6be /app/controllers/apiController.php
parent8dd5fd51f74a47e5c80052f27a74cdcd5dd044b9 (diff)
parentb5f233f6d524ca9f74e9d33bf5692a1a678d7fec (diff)
Merge branch 'dev'0.4.0
Diffstat (limited to 'app/controllers/apiController.php')
-rwxr-xr-xapp/controllers/apiController.php46
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() {
- }
-}