summaryrefslogtreecommitdiffstats
path: root/bl/feedbl.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-25 11:48:15 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-25 11:48:15 +0100
commit77ec6f08aa4fb223fba859ca0f6060e84006da43 (patch)
tree169f5064f0f906bb8ff4fe6949b81151c44c10d5 /bl/feedbl.php
parentdf07df3b29c1d08d0cadc6aa4b11ac82981d002b (diff)
updated backgroundjob
Diffstat (limited to 'bl/feedbl.php')
-rw-r--r--bl/feedbl.php15
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