You are here

public function MostPopularLastRun::canRun in Drupal Most Popular 7

Same name and namespace in other branches
  1. 6 classes/lastrun.php \MostPopularLastRun::canRun()

Can this service run again over this interval?

Return value

boolean True if this service can run again for this interval, false otherwise.

File

classes/lastrun.php, line 60
Defines a wrapper for the mostpopular_last_run table.

Class

MostPopularLastRun
@file Defines a wrapper for the mostpopular_last_run table.

Code

public function canRun() {
  return empty($this->throttle) || strtotime($this->throttle, $this->last_run) <= time();
}