Beispiel #1
0
 /**
  * Grab enqueued tweets and ping them across to Facebook
  */
 public function processQueue()
 {
     $total_updates = 0;
     $this->log('processing queue', 'queue');
     $this->db->exec('set wait_timeout = 43200');
     $tweetQueue = new TweetQueue($this->db);
     while ($tweets = $tweetQueue->getTweets()) {
         $this->log('processing tweets', 'queue');
         $total_updates += $this->processTweets($tweets);
     }
     $this->log($total_updates . ' tweets processed', 'queue');
     $this->log('exiting', 'queue');
 }