diff options
Diffstat (limited to 'bl')
-rw-r--r-- | bl/feedbl.php | 7 | ||||
-rw-r--r-- | bl/folderbl.php | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bl/feedbl.php b/bl/feedbl.php index be63862e4..da6c602bf 100644 --- a/bl/feedbl.php +++ b/bl/feedbl.php @@ -27,12 +27,17 @@ namespace OCA\News\Bl; use \OCA\News\Db\Feed; use \OCA\News\Db\FeedMapper; +use \OCA\News\Utility\FeedFetcher; class FeedBl extends Bl { - public function __construct(FeedMapper $feedMapper){ + private $feedFetcher; + + public function __construct(FeedMapper $feedMapper, + FeedFetcher $feedFetcher){ parent::__construct($feedMapper); + $this->feedFetcher = $feedFetcher; } diff --git a/bl/folderbl.php b/bl/folderbl.php index 19c31657c..638f10bd3 100644 --- a/bl/folderbl.php +++ b/bl/folderbl.php @@ -40,6 +40,7 @@ class FolderBl extends Bl { return $this->mapper->findAllFromUser($userId); } + private function allowNoNameTwice($folderName, $userId){ $existingFolders = $this->mapper->findByName($folderName, $userId); if(count($existingFolders) > 0){ @@ -48,6 +49,7 @@ class FolderBl extends Bl { } } + public function create($folderName, $userId, $parentId=0) { $this->allowNoNameTwice($folderName, $userId); |