diff options
Diffstat (limited to 'bl/feedbl.php')
-rw-r--r-- | bl/feedbl.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bl/feedbl.php b/bl/feedbl.php index 8df399788..1340de632 100644 --- a/bl/feedbl.php +++ b/bl/feedbl.php @@ -44,13 +44,6 @@ class FeedBl extends Bl { } - // 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($userId){ return $this->mapper->findAllFromUser($userId); } @@ -82,6 +75,14 @@ class FeedBl extends Bl { } } + public function updateAll(){ + // TODO: needs test + $feeds = $this->mapper->findAll(); + foreach($feeds as $feed){ + $this->update($feed->getId(), $feed->getUser()); + } + } + public function update($feedId, $userId){ // TODO: update given feed |