diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-20 11:08:07 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-20 11:08:07 +0100 |
commit | 4c6cdf277a26f4f6eebc65526e0ca1baccbeeb92 (patch) | |
tree | 8a3eccdd7b4d124c4a620ab665309801e95e1ade /db/item.php | |
parent | 070abc32e5dd5f64db655330e210178d15a97c72 (diff) |
also mark field as updated in item
Diffstat (limited to 'db/item.php')
-rw-r--r-- | db/item.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/db/item.php b/db/item.php index 4eaa294d3..d7546bcd2 100644 --- a/db/item.php +++ b/db/item.php @@ -28,16 +28,18 @@ namespace OCA\News\Db; class Item extends Entity { + public $guidHash; + public $guid; public $url; public $title; - public $guid; - public $body; - public $status; public $author; - public $date; - public $feedTitle; + public $pubDate; + public $body; public $enclosureMime; public $enclosureLink; + public $feedId; + public $status; + public $feedTitle; public function setRead() { $this->markFieldUpdated('status'); @@ -49,6 +51,7 @@ class Item extends Entity { } public function setUnread() { + $this->markFieldUpdated('status'); $this->status |= StatusFlag::UNREAD; } @@ -57,6 +60,7 @@ class Item extends Entity { } public function setStarred() { + $this->markFieldUpdated('status'); $this->status |= StatusFlag::STARRED; } @@ -65,6 +69,7 @@ class Item extends Entity { } public function setUnstarred() { + $this->markFieldUpdated('status'); $this->status &= ~StatusFlag::STARRED; } |