public static function MostPopularInterval::fetchAll in Drupal Most Popular 6
Same name and namespace in other branches
- 7 classes/intervals.php \MostPopularInterval::fetchAll()
Fetches all of the intervals from the database, ordered by weight.
Return value
array<MostPopularInterval> A list of intervals, sorted by weight.
5 calls to MostPopularInterval::fetchAll()
- MostPopularLastRun::getDefaultThrottles in classes/
lastrun.php - Invokes hook_mostpopular_service('throttles') on the given service to get the default throttles to use for the currently-configured intervals.
- mostpopular_intervals_form in ./
mostpopular.admin.inc - mostpopular_refresh in ./
mostpopular.api.php - Refreshes data from each service by invoking hook_mostpopular_service('refresh').
- mostpopular_service_config_form in ./
mostpopular.admin.inc - theme_mostpopular_intervals in ./
mostpopular.block.inc - Themes a list of links to intervals. You can apply styles to class mostpopular-intervals.
File
- classes/
intervals.php, line 159 - Defines a wrapper for the mostpopular_intervals table.
Class
- MostPopularInterval
- @file Defines a wrapper for the mostpopular_intervals table.
Code
public static function fetchAll() {
$intervals = array();
$sql = 'SELECT * FROM {' . self::$table . '} ORDER BY weight ASC';
$result = db_query($sql);
while ($row = db_fetch_object($result)) {
$intervals[] = new MostPopularInterval($row);
}
return $intervals;
}