diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-19 21:24:33 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-19 21:24:33 +0100 |
commit | d96e7946734c88683920d00a28fd901c7a18be66 (patch) | |
tree | 6e32b9c54370aceb1a02c111a4e622743e97254a /db/item.php | |
parent | 50e00916ce1d4536acc2268161135a588fb0c12f (diff) |
added getter and setter automation and added translation for database fields
Diffstat (limited to 'db/item.php')
-rw-r--r-- | db/item.php | 57 |
1 files changed, 5 insertions, 52 deletions
diff --git a/db/item.php b/db/item.php index ee25ab122..ad245d486 100644 --- a/db/item.php +++ b/db/item.php @@ -16,61 +16,14 @@ namespace OCA\News\Db; class Item extends Entity { public $url; - public $feed_id; + public $title; public $guid; + public $body; public $status; - public $title; + public $author; + public $date; public $feedTitle; - - - public function setUrl($url) { - $this->url = $url; - } - - public function getUrl() { - return $this->url; - } - - public function setFeedId($feed_id) { - $this->feed_id = $feed_id; - } - - public function getFeedId() { - return $this->feed_id; - } - - public function setGUID($guid) { - $this->guid = $guid; - } - - public function getGUID() { - return $this->guid; - } - - public function setStatus($status) { - $this->status = $status; - } - - public function getStatus() { - return $this->status; - } - - public function getTitle() { - return $this->title; - } - - public function setTitle($title) { - $this->title = $title; - } - - public function getFeedTitle() { - return $this->feedTitle; - } - - public function setFeedTitle($feedtitle) { - $this->feedTitle = $feedtitle; - } - + public $enclosure; } |