You are here

public function FeedStorage::getFeedIdsToRefresh in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/FeedStorage.php \Drupal\aggregator\FeedStorage::getFeedIdsToRefresh()

Returns the fids of feeds that need to be refreshed.

Return value

array A list of feed ids to be refreshed.

Overrides FeedStorageInterface::getFeedIdsToRefresh

File

core/modules/aggregator/src/FeedStorage.php, line 23
Contains \Drupal\aggregator\FeedStorage.

Class

FeedStorage
Controller class for aggregator's feeds.

Namespace

Drupal\aggregator

Code

public function getFeedIdsToRefresh() {
  return $this->database
    ->query('SELECT fid FROM {aggregator_feed} WHERE queued = 0 AND checked + refresh < :time AND refresh <> :never', array(
    ':time' => REQUEST_TIME,
    ':never' => AGGREGATOR_CLEAR_NEVER,
  ))
    ->fetchCol();
}