summaryrefslogtreecommitdiffstats
path: root/bl
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-22 13:20:24 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-22 13:20:24 +0100
commit196177a0ca3fc0103d359eec44f46173be685413 (patch)
treef721b656d64e240050980420202873e94f6e9edc /bl
parent7a579b42fa731b65db26bd0c026bc68f2339c451 (diff)
removed mapper parent class and use the new mapper methods from the framework
Diffstat (limited to 'bl')
-rw-r--r--bl/bl.php4
-rw-r--r--bl/feedbl.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/bl/bl.php b/bl/bl.php
index eeabdcb17..ee4ace588 100644
--- a/bl/bl.php
+++ b/bl/bl.php
@@ -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);