aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/entryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/entryController.php')
-rwxr-xr-xapp/Controllers/entryController.php78
1 files changed, 39 insertions, 39 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php
index 048ac1c69..ec90666ed 100755
--- a/app/Controllers/entryController.php
+++ b/app/Controllers/entryController.php
@@ -1,47 +1,47 @@
<?php
class FreshRSS_entry_Controller extends Minz_ActionController {
- public function firstAction () {
+ public function firstAction() {
if (!$this->view->loginOk) {
- Minz_Error::error (
+ Minz_Error::error(
403,
- array ('error' => array (_t('access_denied')))
+ array('error' => array(_t('access_denied')))
);
}
- $this->params = array ();
+ $this->params = array();
$output = Minz_Request::param('output', '');
if (($output != '') && ($this->view->conf->view_mode !== $output)) {
$this->params['output'] = $output;
}
$this->redirect = false;
- $ajax = Minz_Request::param ('ajax');
+ $ajax = Minz_Request::param('ajax');
if ($ajax) {
- $this->view->_useLayout (false);
+ $this->view->_useLayout(false);
}
}
- public function lastAction () {
- $ajax = Minz_Request::param ('ajax');
+ public function lastAction() {
+ $ajax = Minz_Request::param('ajax');
if (!$ajax && $this->redirect) {
- Minz_Request::forward (array (
+ Minz_Request::forward(array(
'c' => 'index',
'a' => 'index',
'params' => $this->params
), true);
} else {
- Minz_Request::_param ('ajax');
+ Minz_Request::_param('ajax');
}
}
- public function readAction () {
+ public function readAction() {
$this->redirect = true;
- $id = Minz_Request::param ('id');
- $get = Minz_Request::param ('get');
- $nextGet = Minz_Request::param ('nextGet', $get);
- $idMax = Minz_Request::param ('idMax', 0);
+ $id = Minz_Request::param('id');
+ $get = Minz_Request::param('get');
+ $nextGet = Minz_Request::param('nextGet', $get);
+ $idMax = Minz_Request::param('idMax', 0);
$entryDAO = FreshRSS_Factory::createEntryDao();
if ($id == false) {
@@ -50,47 +50,47 @@ class FreshRSS_entry_Controller extends Minz_ActionController {
}
if (!$get) {
- $entryDAO->markReadEntries ($idMax);
+ $entryDAO->markReadEntries($idMax);
} else {
$typeGet = $get[0];
- $get = substr ($get, 2);
- switch ($typeGet) {
- case 'c':
- $entryDAO->markReadCat ($get, $idMax);
- break;
- case 'f':
- $entryDAO->markReadFeed ($get, $idMax);
- break;
- case 's':
- $entryDAO->markReadEntries ($idMax, true);
- break;
- case 'a':
- $entryDAO->markReadEntries ($idMax);
- break;
+ $get = substr($get, 2);
+ switch($typeGet) {
+ case 'c':
+ $entryDAO->markReadCat($get, $idMax);
+ break;
+ case 'f':
+ $entryDAO->markReadFeed($get, $idMax);
+ break;
+ case 's':
+ $entryDAO->markReadEntries($idMax, true);
+ break;
+ case 'a':
+ $entryDAO->markReadEntries($idMax);
+ break;
}
if ($nextGet !== 'a') {
$this->params['get'] = $nextGet;
}
}
- $notif = array (
+ $notif = array(
'type' => 'good',
'content' => _t('feeds_marked_read')
);
- Minz_Session::_param ('notification', $notif);
+ Minz_Session::_param('notification', $notif);
} else {
- $is_read = (bool)(Minz_Request::param ('is_read', true));
- $entryDAO->markRead ($id, $is_read);
+ $is_read = (bool)(Minz_Request::param('is_read', true));
+ $entryDAO->markRead($id, $is_read);
}
}
- public function bookmarkAction () {
+ public function bookmarkAction() {
$this->redirect = true;
- $id = Minz_Request::param ('id');
+ $id = Minz_Request::param('id');
if ($id) {
$entryDAO = FreshRSS_Factory::createEntryDao();
- $entryDAO->markFavorite ($id, (bool)(Minz_Request::param ('is_favorite', true)));
+ $entryDAO->markFavorite($id, (bool)(Minz_Request::param('is_favorite', true)));
}
}
@@ -109,11 +109,11 @@ class FreshRSS_entry_Controller extends Minz_ActionController {
invalidateHttpCache();
- $notif = array (
+ $notif = array(
'type' => 'good',
'content' => _t('optimization_complete')
);
- Minz_Session::_param ('notification', $notif);
+ Minz_Session::_param('notification', $notif);
}
Minz_Request::forward(array(