19 declare(strict_types=1);
51 public function __construct(
private readonly
ilCronJob $job, array $record,
private readonly
bool $isPlugin =
false)
61 $this->jobId = (string) $record[
'job_id'];
62 $this->component = (string) $record[
'component'];
63 $this->scheduleType = is_numeric($record[
'schedule_type']) ? CronJobScheduleType::tryFrom((
int) $record[
'schedule_type']) : null;
64 $this->scheduleValue = (
int) $record[
'schedule_value'];
65 $this->jobStatus = (
int) $record[
'job_status'];
66 $this->jobStatusUsrId = (
int) $record[
'job_status_user_id'];
67 $this->jobStatusType = (
int) $record[
'job_status_type'];
68 $this->jobStatusTimestamp = (
int) $record[
'job_status_ts'];
69 $this->jobResultStatus = (
int) $record[
'job_result_status'];
70 $this->jobResultUsrId = (
int) $record[
'job_result_user_id'];
71 $this->jobResultCode = (string) $record[
'job_result_code'];
72 $this->jobResultMessage = (string) $record[
'job_result_message'];
73 $this->jobResultType = (
int) $record[
'job_result_type'];
74 $this->jobResultTimestamp = (
int) $record[
'job_result_ts'];
75 $this->
class = (string) $record['class'];
76 $this->path = (string) $record[
'path'];
77 $this->runningTimestamp = (
int) $record[
'running_ts'];
78 $this->jobResultDuration = (
int) $record[
'job_result_dur'];
79 $this->aliveTimestamp = (
int) $record[
'alive_ts'];
184 return $this->isPlugin;
190 if (!$type || !$this->
getJob()->hasFlexibleSchedule()) {
191 $type = $this->
getJob()->getDefaultScheduleType();
201 if (!$type || !$this->
getJob()->hasFlexibleSchedule()) {
202 $value = (
int) $this->
getJob()->getDefaultScheduleValue();
215 $title = $this->
getJob()->getTitle();
getEffectiveScheduleValue()
CronJobScheduleType $scheduleType
getEffectiveScheduleType()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(private readonly ilCronJob $job, array $record, private readonly bool $isPlugin=false)
ilCronJobEntity constructor.