diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-22 13:20:24 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-22 13:20:24 +0100 |
commit | 196177a0ca3fc0103d359eec44f46173be685413 (patch) | |
tree | f721b656d64e240050980420202873e94f6e9edc /bl | |
parent | 7a579b42fa731b65db26bd0c026bc68f2339c451 (diff) |
removed mapper parent class and use the new mapper methods from the framework
Diffstat (limited to 'bl')
-rw-r--r-- | bl/bl.php | 4 | ||||
-rw-r--r-- | bl/feedbl.php | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -28,14 +28,14 @@ namespace OCA\News\Bl; use \OCA\AppFramework\Db\DoesNotExistException; use \OCA\AppFramework\Db\MultipleObjectsReturnedException; -use \OCA\News\Db\NewsMapper; +use \OCA\News\Db\IMapper; abstract class Bl { protected $mapper; - public function __construct(NewsMapper $mapper){ + public function __construct(IMapper $mapper){ $this->mapper = $mapper; } diff --git a/bl/feedbl.php b/bl/feedbl.php index 5e5ff4fa7..53a2e6061 100644 --- a/bl/feedbl.php +++ b/bl/feedbl.php @@ -55,7 +55,8 @@ class FeedBl extends Bl { public function create($feedUrl, $folderId, $userId){ - // first try if its possible to reach the feed + // first try if the feed exists already + try { list($feed, $items) = $this->feedFetcher->fetch($feedUrl); |