diff options
Diffstat (limited to 'feed.bl.php')
-rw-r--r-- | feed.bl.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/feed.bl.php b/feed.bl.php index 71507af98..c18b5a50b 100644 --- a/feed.bl.php +++ b/feed.bl.php @@ -11,4 +11,15 @@ class FeedBL { public function getAll() { return $this->feedMapper->findAll(); } + + public function getById($feedid) { + return $this->feedMapper->findById($feedid); + } + + public function create($url, $folderid) { + $feed = \OC_News_Utils::fetch($url); + $this->feedMapper->save($feed, $folderid); + return true; + } + } |