comparison core/modules/aggregator/src/FeedStorage.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 129ea1e6d783
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\aggregator;
4
5 use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
6
7 /**
8 * Controller class for aggregator's feeds.
9 *
10 * This extends the Drupal\Core\Entity\Sql\SqlContentEntityStorage class, adding
11 * required special handling for feed entities.
12 */
13 class FeedStorage extends SqlContentEntityStorage implements FeedStorageInterface {
14
15 /**
16 * {@inheritdoc}
17 */
18 public function getFeedIdsToRefresh() {
19 return $this->database->query('SELECT fid FROM {aggregator_feed} WHERE queued = 0 AND checked + refresh < :time AND refresh <> :never', [
20 ':time' => REQUEST_TIME,
21 ':never' => AGGREGATOR_CLEAR_NEVER,
22 ])->fetchCol();
23 }
24
25 }