summaryrefslogtreecommitdiffstats
path: root/db/feed.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-03-02 19:50:33 +0100
committerAlessandro Cosentino <cosenal@gmail.com>2013-03-02 19:50:33 +0100
commit4902253e9c8aac706091c6337391153b02923689 (patch)
tree3012e106d477a83e718ea42741c445895922df8e /db/feed.php
parent165540d34652fb895cb7f29c818fb3427bfba8c4 (diff)
prototype for business layer for feed
Diffstat (limited to 'db/feed.php')
-rw-r--r--db/feed.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/feed.php b/db/feed.php
index 0f2e861b7..48f379a1b 100644
--- a/db/feed.php
+++ b/db/feed.php
@@ -71,5 +71,15 @@ class Feed extends Collection {
public function getFolderId(){
return $this->folderId;
}
+
+ public function jsonSerialize(){
+ //TODO: this is just for test
+ $encoding = array(
+ 'id' => $this->getId(),
+ 'url' => $this->getUrl(),
+ 'title' => $this->getTitle()
+ );
+ return $encoding;
+ }
}