public function setTimeStep() { $this->parse_time = false; $nextTimeSeconds = ScheduleTypeReports::getNextPeriodTime($this->period * 60, It::timeToUnixTimestamp($this->next_run_planned)); $this->next_run_planned = date('Y-m-d H:i:s', $nextTimeSeconds); $nextTimeSeconds = ScheduleTypeReports::getNextPeriodTime($this->period * 60, It::timeToUnixTimestamp($this->start_datetime)); $this->start_datetime = date('Y-m-d H:i:s', $nextTimeSeconds); $this->save(false); }
public function AfterFind() { parent::AfterFind(); $this->unix_timestamp = It::timeToUnixTimestamp($this->check_period_start); $this->setFileContent(); }