You are here

function CronRule::rebuildRule in Ultimate Cron 8

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

Convert intervals back into crontab rule format

1 call to CronRule::rebuildRule()
CronRule::parseRule in ./CronRule.class.php
Parse rule. Run through parser expanding expression, and recombine into crontab syntax.

File

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

Class

CronRule
@file

Code

function rebuildRule($intervals) {
  $parts = array();
  foreach ($intervals as $type => $interval) {
    $parts[] = $this->parsed_rule[$type];
  }
  return implode(' ', $parts);
}