Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 5 |
| FeedStorage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 5 |
| getFeedIdsToRefresh | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 5 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\aggregator\FeedStorage. | |
| */ | |
| 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 {aggregator_feed} WHERE queued = 0 AND checked + refresh < :time AND refresh <> :never', array( | |
| ':time' => REQUEST_TIME, | |
| ':never' => AGGREGATOR_CLEAR_NEVER, | |
| ))->fetchCol(); | |
| } | |
| } |