aboutsummaryrefslogtreecommitdiff
path: root/app/models/RSSConfiguration.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-25 13:25:27 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-25 13:25:27 +0200
commitb780a2329b5f4b37ad7fb0453544a410d0f48416 (patch)
tree318fad9b73ec698b0f8b5c89dc8ec465cdad438f /app/models/RSSConfiguration.php
parent31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff)
New option onread_jump_next
Added a new option to automatically jump to the next sibling (category or feed) when hitting the button "mark as read".
Diffstat (limited to 'app/models/RSSConfiguration.php')
-rwxr-xr-xapp/models/RSSConfiguration.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/RSSConfiguration.php b/app/models/RSSConfiguration.php
index 302dfb8fa..f079f1c41 100755
--- a/app/models/RSSConfiguration.php
+++ b/app/models/RSSConfiguration.php
@@ -10,6 +10,7 @@ class RSSConfiguration extends Model {
private $view_mode;
private $default_view;
private $display_posts;
+ private $onread_jump_next;
private $lazyload;
private $sort_order;
private $old_entries;
@@ -29,6 +30,7 @@ class RSSConfiguration extends Model {
$this->_viewMode ($confDAO->view_mode);
$this->_defaultView ($confDAO->default_view);
$this->_displayPosts ($confDAO->display_posts);
+ $this->_onread_jump_next ($confDAO->onread_jump_next);
$this->_lazyload ($confDAO->lazyload);
$this->_sortOrder ($confDAO->sort_order);
$this->_oldEntries ($confDAO->old_entries);
@@ -60,6 +62,9 @@ class RSSConfiguration extends Model {
public function displayPosts () {
return $this->display_posts;
}
+ public function onread_jump_next () {
+ return $this->onread_jump_next;
+ }
public function lazyload () {
return $this->lazyload;
}
@@ -137,6 +142,13 @@ class RSSConfiguration extends Model {
$this->display_posts = 'no';
}
}
+ public function _onread_jump_next ($value) {
+ if ($value == 'no') {
+ $this->onread_jump_next = 'no';
+ } else {
+ $this->onread_jump_next = 'yes';
+ }
+ }
public function _lazyload ($value) {
if ($value == 'no') {
$this->lazyload = 'no';
@@ -219,6 +231,7 @@ class RSSConfigurationDAO extends Model_array {
public $view_mode = 'normal';
public $default_view = 'not_read';
public $display_posts = 'no';
+ public $onread_jump_next = 'yes';
public $lazyload = 'yes';
public $sort_order = 'low_to_high';
public $old_entries = 3;
@@ -262,6 +275,9 @@ class RSSConfigurationDAO extends Model_array {
if (isset ($this->array['display_posts'])) {
$this->display_posts = $this->array['display_posts'];
}
+ if (isset ($this->array['onread_jump_next'])) {
+ this->onread_jump_next = $this->array['onread_jump_next'];
+ }
if (isset ($this->array['lazyload'])) {
$this->lazyload = $this->array['lazyload'];
}