Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }