summaryrefslogtreecommitdiffstats
path: root/bl/feedbl.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-21 20:38:09 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-21 20:38:20 +0100
commitc8bdd9c3fb0ab872b868c151f052748235601653 (patch)
treeaf4ffc33ad013f817af14aed25e54606429ad612 /bl/feedbl.php
parentd692600a31bf4aa9be8b71d8fcb16e90e9393aea (diff)
finished feedcontroller
Diffstat (limited to 'bl/feedbl.php')
-rw-r--r--bl/feedbl.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/bl/feedbl.php b/bl/feedbl.php
index d196586bb..be63862e4 100644
--- a/bl/feedbl.php
+++ b/bl/feedbl.php
@@ -35,34 +35,34 @@ class FeedBl extends Bl {
parent::__construct($feedMapper);
}
- // README: only call this for the cronjob!
- public function findAll(){
+ // README: only call this for the cronjob because it does not
+ // check that the feeds belong to the right user
+ public function findAll(){
+ return $this->mapper->findAll();
}
- public function findAllFromUser(){
-
+ public function findAllFromUser($userId){
+ return $this->mapper->findAllFromUser($userId);
}
- public function create(){
-
+ public function create($feedUrl, $parentId, $userId){
+ // TODO: download new items of feed
}
- public function update(){
-
+ public function update($feedId, $userId){
+ // TODO: update given feed
}
- public function move(){
-
+ public function move($feedId, $folderId, $userId){
+ $feed = $this->find($feedId, $userId);
+ $feed->setFolderId($folderId);
+ $this->mapper->update($feed);
}
- public function read(){
-
- }
-
}