You are here

public function SocialContentTwitter::getRows in Social Content 7.2

Get the rows to import.

Parameters

mixed $last_id: The id of the last import.

Return value

array Array of rows.

Overrides SocialContent::getRows

File

modules/twitter/social_content_twitter.class.inc, line 271
Social Content Twitter class.

Class

SocialContentTwitter
@file Social Content Twitter class.

Code

public function getRows($last_id = NULL) {
  $settings = $this->settings['instance'];
  $global_settings = $this->settings['global'];
  $rows = array();
  if ($settings['type'] == 'hashtag') {
    $rows = $this
      ->getRowsHashtag($settings, $global_settings, $last_id);
  }
  elseif ($settings['type'] == 'account') {
    $rows = $this
      ->getRowsAccount($settings, $global_settings, $last_id);
  }
  return $rows;
}