You are here

protected function JobSchedulerCronTab::checkDay in Job Scheduler 7.2

Check whether date's day is a valid one.

2 calls to JobSchedulerCronTab::checkDay()
JobSchedulerCronTab::nextDate in ./JobSchedulerCronTab.inc
Find the next occurrence within the next year as a date array,.
JobSchedulerCronTab::nextDay in ./JobSchedulerCronTab.inc
Find the next day from date that matches with cron parameters.

File

./JobSchedulerCronTab.inc, line 137
JobSchedulerCronTab class.

Class

JobSchedulerCronTab
Jose's cron tab parser = Better try only simple crontab strings.

Code

protected function checkDay($date) {
  foreach (array(
    'wday',
    'mday',
    'mon',
  ) as $key) {
    if (!in_array($date[$key], $this->cron[$key])) {
      return FALSE;
    }
  }
  return TRUE;
}