summaryrefslogtreecommitdiffstats
path: root/lib/item.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-05-29 16:07:12 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-05-29 16:07:12 -0400
commita6e57a9a1f4427de872c4bf0050cc0ee38d2adfe (patch)
tree82f1a064079526950bcb7a9bbf9cd1262df93564 /lib/item.php
parent07fdf6ad3c3cc659a06099cd2011aab1ce2c8c5e (diff)
adds indices to database schema
Diffstat (limited to 'lib/item.php')
-rw-r--r--lib/item.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/item.php b/lib/item.php
index a5a49937c..e048e9d11 100644
--- a/lib/item.php
+++ b/lib/item.php
@@ -37,22 +37,32 @@ class OC_News_Item {
private $url;
private $title;
+ private $guid;
private $body;
private $status; //a bit-field set with status flags
private $id; //id of the item in the database table
- public function __construct($url, $title, $id = null){
+ public function __construct($url, $title, $guid, $id = null){
$this->title = $title;
$this->url = $url;
+ $this->guid = $guid;
$this->status |= StatusFlag::Unread;
}
+ public function getGuid(){
+ return $this->guid;
+ }
+
+ public function setGuid($guid){
+ $this->guid = $guid;
+ }
+
public function getId(){
- return $this->$id;;
+ return $this->id;
}
public function setId($id){
- $this->$id = $id;
+ $this->id = $id;
}
public function setRead(){