summaryrefslogtreecommitdiffstats
path: root/feed.bl.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-03-03 11:06:00 +0100
committerAlessandro Cosentino <cosenal@gmail.com>2013-03-03 11:06:00 +0100
commit0852773340ed26ecc8faa8e61192f38132673bc6 (patch)
treed5727c17955fb2e2f0d96f58717d819e75762bcf /feed.bl.php
parent4902253e9c8aac706091c6337391153b02923689 (diff)
adds a call to create feed
Diffstat (limited to 'feed.bl.php')
-rw-r--r--feed.bl.php11
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;
+ }
+
}