diff options
Diffstat (limited to 'db/feed.php')
-rw-r--r-- | db/feed.php | 10 |
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; + } } |