function fetchStrayRepliedToTweets($lurl, $fa)
 {
     $td = new TweetDAO($this->db, $this->logger);
     $strays = $td->getStrayRepliedToTweets($this->owner_object->id);
     $status_message = count($strays) . ' stray replied-to tweets to load.';
     $this->logger->logStatus($status_message, get_class($this));
     foreach ($strays as $s) {
         if ($this->api->available && $this->api->available_api_calls_for_crawler > 0) {
             $this->fetchAndAddTweetRepliedTo($s['in_reply_to_status_id'], $td, $lurl, $fa);
         }
     }
 }
Exemple #2
0
 function fetchStrayRepliedToTweets($cfg, $api, $logger)
 {
     $td = new TweetDAO();
     $strays = $td->getStrayRepliedToTweets($cfg->twitter_user_id);
     $status_message = count($strays) . ' stray replied-to tweets to load.';
     $logger->logStatus($status_message, get_class($this));
     foreach ($strays as $s) {
         if ($api->available && $api->available_api_calls_for_crawler > 0) {
             $this->fetchAndAddTweetRepliedTo($s['in_reply_to_status_id'], $td, $api, $logger);
         }
     }
 }