summaryrefslogtreecommitdiffstats
path: root/db/item.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-26 18:04:02 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-26 18:04:02 +0100
commitc8d3f8fb4681f6993f1c9389e507df0724f56579 (patch)
tree312b48cdbc17c23d1e7aac6513f40e0a5813fdbf /db/item.php
parent8e1e0f5281c1ee49fe7f6d84ba8f2b709ebf7f40 (diff)
added casting information for data objects
Diffstat (limited to 'db/item.php')
-rw-r--r--db/item.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/item.php b/db/item.php
index 6050d0e9b..4a3bd9733 100644
--- a/db/item.php
+++ b/db/item.php
@@ -44,6 +44,15 @@ class Item extends Entity {
public $feedTitle;
public $lastModified;
+
+ public function __construct(){
+ $this->addType('pubDate', 'int');
+ $this->addType('feedId', 'int');
+ $this->addType('status', 'int');
+ $this->addType('lastModified', 'int');
+ }
+
+
public function setRead() {
$this->markFieldUpdated('status');
$this->status &= ~StatusFlag::UNREAD;