Mercurial > hg > cmmr2012-drupal-site
view core/modules/aggregator/src/FeedStorage.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line source
<?php namespace Drupal\aggregator; use Drupal\Core\Entity\Sql\SqlContentEntityStorage; /** * Controller class for aggregator's feeds. * * This extends the Drupal\Core\Entity\Sql\SqlContentEntityStorage class, adding * required special handling for feed entities. */ class FeedStorage extends SqlContentEntityStorage implements FeedStorageInterface { /** * {@inheritdoc} */ public function getFeedIdsToRefresh() { return $this->database->query('SELECT fid FROM {' . $this->getBaseTable() . '} WHERE queued = 0 AND checked + refresh < :time AND refresh <> :never', [ ':time' => REQUEST_TIME, ':never' => AGGREGATOR_CLEAR_NEVER, ])->fetchCol(); } }