summaryrefslogtreecommitdiffstats
path: root/lib/item.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-04 16:54:26 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-04 16:54:26 -0400
commitfcd843bc0c2ef3163d1ecc6b036e46726a61239a (patch)
treef2ce5d1117be95e2b24a16b59e83238a15ef910b /lib/item.php
parent69480001986cd83852ee6351fbd5d68718eb829c (diff)
shows articles in accordion view
Diffstat (limited to 'lib/item.php')
-rw-r--r--lib/item.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/item.php b/lib/item.php
index bd695d8bd..ff3655e04 100644
--- a/lib/item.php
+++ b/lib/item.php
@@ -31,10 +31,11 @@ class OC_News_Item {
private $status; //a bit-field set with status flags
private $id; //id of the item in the database table
- public function __construct($url, $title, $guid, $id = null){
+ public function __construct($url, $title, $guid, $body, $id = null){
$this->title = $title;
$this->url = $url;
$this->guid = $guid;
+ $this->body = $body;
$this->status |= StatusFlag::Unread;
}
@@ -105,4 +106,12 @@ class OC_News_Item {
public function setUrl($url){
$this->url = $url;
}
+
+ public function getBody(){
+ return $this->body;
+ }
+
+ public function setBody($body){
+ $this->body = $body;
+ }
}