public static function MostPopularLastRun::resetLastRun in Drupal Most Popular 7
Same name and namespace in other branches
- 6 classes/lastrun.php \MostPopularLastRun::resetLastRun()
Resets the last time the specified service was run.
Parameters
integer $sid: The service ID. If null, all services are reset.
integer $iid: The interval ID. If null, all intervals are reset.
File
- classes/
lastrun.php, line 255 - Defines a wrapper for the mostpopular_last_run table.
Class
- MostPopularLastRun
- @file Defines a wrapper for the mostpopular_last_run table.
Code
public static function resetLastRun($sid = NULL, $iid = NULL) {
$runs = self::fetchAll($sid, $iid);
foreach ($runs as $run) {
$run->last_run = 0;
$run
->save();
}
}