summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-10-13 04:47:35 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-10-13 04:47:35 +0200
commit4b5f94b435b4756e3aa9e1a3fad3820ce1389ba8 (patch)
tree88b016195f4dbcf2deb6993d6ec029df7a05db8c /lib
parent523f5304be09223b3b57a9df0452123e90f627e3 (diff)
selecting folders works
Diffstat (limited to 'lib')
-rw-r--r--lib/item.php8
-rw-r--r--lib/itemmapper.php1
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/item.php b/lib/item.php
index 114751cfe..577b6d8e8 100644
--- a/lib/item.php
+++ b/lib/item.php
@@ -48,6 +48,14 @@ class Item {
}
}
+ public function getFeedId() {
+ return $this->feedId;
+ }
+
+ public function setFeedId($feedId) {
+ $this->feedId = $feedId;
+ }
+
public function getGuid() {
return $this->guid;
}
diff --git a/lib/itemmapper.php b/lib/itemmapper.php
index 41e4e3a29..2f4e295b2 100644
--- a/lib/itemmapper.php
+++ b/lib/itemmapper.php
@@ -44,6 +44,7 @@ class ItemMapper {
$item = new Item($url, $title, $guid, $body, $id);
$item->setStatus($row['status']);
$item->setAuthor($row['author']);
+ $item->setFeedId($row['feed_id']);
$item->setDate(Utils::dbtimestampToUnixtime($row['pub_date']));
return $item;