summaryrefslogtreecommitdiffstats
path: root/db/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'db/item.php')
-rw-r--r--db/item.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/item.php b/db/item.php
index 1326b65ba..c83da572d 100644
--- a/db/item.php
+++ b/db/item.php
@@ -109,6 +109,23 @@ class Item extends Entity implements IAPI {
}
+ public function toExport($feeds) {
+ return array(
+ 'guid' => $this->getGuid(),
+ 'url' => $this->getUrl(),
+ 'title' => $this->getTitle(),
+ 'author' => $this->getAuthor(),
+ 'pubDate' => $this->getPubDate(),
+ 'body' => $this->getBody(),
+ 'enclosureMime' => $this->getEnclosureMime(),
+ 'enclosureLink' => $this->getEnclosureLink(),
+ 'unread' => $this->isUnread(),
+ 'starred' => $this->isStarred(),
+ 'feedLink' => $feeds['feed'. $this->getFeedId()]->getLink()
+ );
+ }
+
+
public function setAuthor($name) {
parent::setAuthor(strip_tags($name));
}