You are here

public function CronRule::rebuildRule in Ultimate Cron 7.2

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

Convert intervals back into crontab rule format.

Parameters

array $intervals: Intervals to convert.

Return value

string Crontab rule.

1 call to CronRule::rebuildRule()
CronRule::parseRule in ./CronRule.class.php
Parse rule.

File

./CronRule.class.php, line 241
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 rebuildRule($intervals) {
  if (!is_array($intervals['parts'])) {
    return FALSE;
  }
  return implode(' ', $intervals['parts']);
}