public static function MostPopularInterval::fetchAll in Drupal Most Popular 7
Same name and namespace in other branches
- 6 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.
1 call 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.
 
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;
}