You are here

public function CronRule::__construct in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8 CronRule.class.php \CronRule::__construct()
  2. 6 CronRule.class.php \CronRule::__construct()
  3. 7 CronRule.class.php \CronRule::__construct()

Constructor.

Parameters

string $rule: The crontab rule to use.

int $time: The time to test against.

int $skew: Skew for @ flag.

File

./CronRule.class.php, line 67
This class parses cron rules and determines last execution time using least case integer comparison.

Class

CronRule
@file This class parses cron rules and determines last execution time using least case integer comparison.

Code

public function __construct($rule, $time, $skew) {

  // Trim the rule to avoid infinite loops in later processing.
  $this->rule = trim($rule);
  $this->time = $time;
  $this->skew = $skew;
}