summaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php
index 240dbca73..fa711aa66 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -7,6 +7,7 @@ class FreshRSS_Category extends Minz_Model {
private $nbNotRead = -1;
private $feeds = null;
private $hasFeedsWithError = false;
+ private $isDefault = false;
public function __construct($name = '', $feeds = null) {
$this->_name($name);
@@ -28,6 +29,9 @@ class FreshRSS_Category extends Minz_Model {
public function name() {
return $this->name;
}
+ public function isDefault() {
+ return $this->isDefault;
+ }
public function nbFeed() {
if ($this->nbFeed < 0) {
$catDAO = FreshRSS_Factory::createCategoryDao();
@@ -70,6 +74,9 @@ class FreshRSS_Category extends Minz_Model {
public function _name($value) {
$this->name = trim($value);
}
+ public function _isDefault($value) {
+ $this->isDefault = $value;
+ }
public function _feeds($values) {
if (!is_array($values)) {
$values = array($values);