public static function FeedImport::loadAllFeeds in Feed Import 7.3
Get a list with all feeds.
6 calls to FeedImport::loadAllFeeds()
- drush_feed_import_base_list in feed_import_base/
feed_import_base.drush.inc - Implements drush_COMMANDFILE_COMMANDNAME()
- FeedImport::deleteExpired in feed_import_base/
inc/ feed_import.inc - Delete all expired items.
- FeedImport::getHashManagers in feed_import_base/
inc/ feed_import.inc - Gets all hash manager classes used by feeds.
- feed_import_base_cron in feed_import_base/
feed_import_base.module - Implements hook_cron().
- feed_import_list_feeds in ./
feed_import.module - List all feeds
File
- feed_import_base/
inc/ feed_import.inc, line 254 - This file contains Feed Import helpers.
Class
- FeedImport
- This class provides helper functions for feed import.
Code
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;
}