function testGetUnloadedFollowerDetails()
 {
     $dao = new FollowDAO($this->db, $this->logger);
     $unloaded_followers = $dao->getUnloadedFollowerDetails(13);
     $this->assertTrue(count($unloaded_followers) == 1);
     $this->assertTrue($unloaded_followers[0]['follower_id'] == 14);
 }
 function fetchUnloadedFollowerDetails()
 {
     $fd = new FollowDAO($this->db, $this->logger);
     $strays = $fd->getUnloadedFollowerDetails($this->owner_object->id);
     $status_message = count($strays) . ' unloaded follower details 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->fetchAndAddUser($s['follower_id'], "Follower IDs");
         }
     }
 }
Exemple #3
0
 function fetchUnloadedFollowerDetails($cfg, $api, $logger)
 {
     $fd = new FollowDAO();
     $strays = $fd->getUnloadedFollowerDetails($cfg->twitter_user_id);
     $status_message = count($strays) . ' unloaded follower details to load.';
     $logger->logStatus($status_message, get_class($this));
     foreach ($strays as $s) {
         if ($api->available && $api->available_api_calls_for_crawler > 0) {
             $this->fetchAndAddUser($s['follower_id'], $api, $logger, $cfg, "Follower IDs");
         }
     }
 }