public static function FeedImport::loadAllFeeds in Feed Import 8
Get a list with all feeds.
2 calls to FeedImport::loadAllFeeds()
- FeedImport::deleteExpired in feed_import_base/
src/ FeedImport.php - Delete all expired items.
- FeedImport::getHashManagers in feed_import_base/
src/ FeedImport.php - Gets all hash manager classes used by feeds.
File
- feed_import_base/
src/ FeedImport.php, line 213
Class
- FeedImport
- This class provides helper functions for feed import.
Namespace
Drupal\feed_import_baseCode
public static function loadAllFeeds() {
if (static::$feedsList) {
return static::$feedsList;
}
$feeds = db_select('feed_import_settings', 'f')
->fields('f')
->orderBy('id', 'DESC')
->execute()
->fetchAll();
$ret = array();
foreach ($feeds as &$feed) {
$feed->settings = unserialize($feed->settings);
$ret[$feed->machine_name] = $feed;
}
return static::$feedsList = $ret;
}