diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-04 16:54:26 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-04 16:54:26 -0400 |
commit | fcd843bc0c2ef3163d1ecc6b036e46726a61239a (patch) | |
tree | f2ce5d1117be95e2b24a16b59e83238a15ef910b /lib/item.php | |
parent | 69480001986cd83852ee6351fbd5d68718eb829c (diff) |
shows articles in accordion view
Diffstat (limited to 'lib/item.php')
-rw-r--r-- | lib/item.php | 11 |
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; + } } |