FeedStorage::getFeedIdsToRefresh

public 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 18

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();
}
doc_Drupal
2016-10-29 09:10:19
Comments
Leave a Comment

Please login to continue.