Cron - staffcheck/api GitHub Wiki

Cron

  • Class name: Cron
  • Namespace:

Properties

$limits

protected mixed $limits = array('minute' => array('min' => 0, 'max' => 59), 'hour' => array('min' => 0, 'max' => 23), 'day_of_month' => array('min' => 1, 'max' => 31), 'month' => array('min' => 1, 'max' => 12), 'day_of_week' => array('min' => 0, 'max' => 7))
  • Visibility: protected
  • This property is static.

Methods

getOptions

array|boolean Cron::getOptions($name, integer $interval)
  • Visibility: public
  • This method is static.

Arguments

  • $name mixed
  • $interval integer

isValidLimit

boolean Cron::isValidLimit($value_arr, $type)
  • Visibility: public
  • This method is static.

Arguments

  • $value_arr mixed
  • $type mixed

arrayToScheduleString

boolean|string Cron::arrayToScheduleString($arr, $type)
  • Visibility: public
  • This method is static.

Arguments

  • $arr mixed
  • $type mixed

parseScheduleString

array Cron::parseScheduleString($str, $type)
  • Visibility: public
  • This method is static.

Arguments

  • $str mixed
  • $type mixed

getNextScheduleDate

false|integer|null Cron::getNextScheduleDate($min_col, $hour_col, $dom_col, $month_col, $dow_col, integer $epoch)
  • Visibility: public
  • This method is static.

Arguments

  • $min_col mixed
  • $hour_col mixed
  • $dom_col mixed
  • $month_col mixed
  • $dow_col mixed
  • $epoch integer - EPOCH

isScheduledToRun

boolean Cron::isScheduledToRun($min_col, $hour_col, $dom_col, $month_col, $dow_col, integer $epoch, integer $last_run_date)
  • Visibility: public
  • This method is static.

Arguments

  • $min_col mixed
  • $hour_col mixed
  • $dom_col mixed
  • $month_col mixed
  • $dow_col mixed
  • $epoch integer - EPOCH
  • $last_run_date integer - EPOCH
⚠️ **GitHub.com Fallback** ⚠️