public function JobSchedulerCronTab::__construct in Job Scheduler 8.3
Same name and namespace in other branches
- 8.2 src/JobSchedulerCronTab.php \Drupal\job_scheduler\JobSchedulerCronTab::__construct()
Constructs a JobSchedulerCronTab object.
About crontab strings, see all about possible formats http://linux.die.net/man/5/crontab.
Parameters
string|array $crontab: Crontab text line: minute hour day-of-month month day-of-week.
File
- src/
JobSchedulerCronTab.php, line 33
Class
- JobSchedulerCronTab
- Class for job scheduler crontab.
Namespace
Drupal\job_schedulerCode
public function __construct($crontab) {
$this->crontab = $crontab;
if (is_array($crontab)) {
$this->cron = $this
->values($crontab);
}
else {
$this->cron = $this
->parse($crontab);
}
}