ILIAS  release_8 Revision v8.24
ilCronJobEntity Class Reference
+ Collaboration diagram for ilCronJobEntity:

Public Member Functions

 __construct (ilCronJob $job, array $record, bool $isPlugin=false)
 ilCronJobEntity constructor. More...
 
 getJob ()
 
 getJobId ()
 
 getComponent ()
 
 getScheduleType ()
 
 getScheduleValue ()
 
 getJobStatus ()
 
 getJobStatusUsrId ()
 
 getJobStatusType ()
 
 getJobStatusTimestamp ()
 
 getJobResultStatus ()
 
 getJobResultUsrId ()
 
 getJobResultCode ()
 
 getJobResultMessage ()
 
 getJobResultType ()
 
 getJobResultTimestamp ()
 
 getClass ()
 
 getPath ()
 
 getRunningTimestamp ()
 
 getJobResultDuration ()
 
 getAliveTimestamp ()
 
 isPlugin ()
 
 getEffectiveScheduleType ()
 
 getEffectiveScheduleValue ()
 
 getEffectiveTitle ()
 

Private Member Functions

 mapRecord (array $record)
 

Private Attributes

ilCronJob $job
 
bool $isPlugin
 
string $jobId
 
string $component
 
int $scheduleType
 
int $scheduleValue
 
int $jobStatus
 
int $jobStatusUsrId
 
int $jobStatusType
 
int $jobStatusTimestamp
 
int $jobResultStatus
 
int $jobResultUsrId
 
string $jobResultCode
 
string $jobResultMessage
 
int $jobResultType
 
int $jobResultTimestamp
 
string $class
 
string $path
 
int $runningTimestamp
 
int $jobResultDuration
 
int $aliveTimestamp
 

Detailed Description

Definition at line 21 of file class.ilCronJobEntity.php.

Constructor & Destructor Documentation

◆ __construct()

ilCronJobEntity::__construct ( ilCronJob  $job,
array  $record,
bool  $isPlugin = false 
)

ilCronJobEntity constructor.

Parameters
ilCronJob$job
array<string,mixed>$record
bool$isPlugin

Definition at line 51 of file class.ilCronJobEntity.php.

52 {
53 $this->job = $job;
54 $this->isPlugin = $isPlugin;
55 $this->mapRecord($record);
56 }
mapRecord(array $record)

References $isPlugin, $job, isPlugin(), and mapRecord().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAliveTimestamp()

ilCronJobEntity::getAliveTimestamp ( )

Definition at line 179 of file class.ilCronJobEntity.php.

179 : int
180 {
182 }

References $aliveTimestamp.

Referenced by ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getClass()

ilCronJobEntity::getClass ( )

Definition at line 159 of file class.ilCronJobEntity.php.

159 : string
160 {
161 return $this->class;
162 }

References $class.

◆ getComponent()

ilCronJobEntity::getComponent ( )

Definition at line 94 of file class.ilCronJobEntity.php.

94 : string
95 {
96 return $this->component;
97 }

References $component.

Referenced by ilCronManagerTableFilterMediator\filter(), ilCronManagerTableFilterMediator\filteredJobs(), getEffectiveTitle(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getEffectiveScheduleType()

ilCronJobEntity::getEffectiveScheduleType ( )

Definition at line 189 of file class.ilCronJobEntity.php.

189 : int
190 {
191 $type = $this->getScheduleType();
192 if (!$type || !$this->getJob()->hasFlexibleSchedule()) {
193 $type = $this->getJob()->getDefaultScheduleType();
194 }
195
196 return $type;
197 }
$type

References $type, getJob(), and getScheduleType().

Referenced by ilCronManagerTableFilterMediator\filteredJobs(), ilCronManagerTableGUI\formatSchedule(), and ilCronManagerTableGUI\populate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEffectiveScheduleValue()

ilCronJobEntity::getEffectiveScheduleValue ( )

Definition at line 199 of file class.ilCronJobEntity.php.

199 : int
200 {
201 $type = $this->getScheduleType();
202 $value = $this->getScheduleValue();
203 if (!$type || !$this->getJob()->hasFlexibleSchedule()) {
204 $value = (int) $this->getJob()->getDefaultScheduleValue();
205 }
206
207 return $value;
208 }

References $type, getJob(), getScheduleType(), getScheduleValue(), and ILIAS\Repository\int().

Referenced by ilCronManagerTableGUI\formatSchedule(), and ilCronManagerTableGUI\populate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEffectiveTitle()

ilCronJobEntity::getEffectiveTitle ( )

Definition at line 210 of file class.ilCronJobEntity.php.

210 : string
211 {
212 $id = $this->getJobId();
213 if ($this->isPlugin()) {
214 $id = 'pl__' . $this->getComponent() . '__' . $id;
215 }
216
217 $title = $this->getJob()->getTitle();
218 if ($title === '') {
219 $title = $id;
220 }
221
222 return $title;
223 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, getComponent(), getJob(), getJobId(), and isPlugin().

Referenced by ilCronManagerTableFilterMediator\filteredJobs(), and ilCronManagerTableGUI\populate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getJob()

ilCronJobEntity::getJob ( )

Definition at line 84 of file class.ilCronJobEntity.php.

84 : ilCronJob
85 {
86 return $this->job;
87 }

References $job.

Referenced by getEffectiveScheduleType(), getEffectiveScheduleValue(), getEffectiveTitle(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getJobId()

ilCronJobEntity::getJobId ( )

Definition at line 89 of file class.ilCronJobEntity.php.

89 : string
90 {
91 return $this->jobId;
92 }

References $jobId.

Referenced by getEffectiveTitle(), ilCronManagerTableGUI\populate(), and CronJobEntityTest\testCollectionCanBeFilteredAndSliced().

+ Here is the caller graph for this function:

◆ getJobResultCode()

ilCronJobEntity::getJobResultCode ( )

Definition at line 139 of file class.ilCronJobEntity.php.

139 : string
140 {
142 }

References $jobResultCode.

Referenced by ilCronManagerTableGUI\formatResultInfo().

+ Here is the caller graph for this function:

◆ getJobResultDuration()

ilCronJobEntity::getJobResultDuration ( )

Definition at line 174 of file class.ilCronJobEntity.php.

174 : int
175 {
177 }

References $jobResultDuration.

Referenced by ilCronManagerTableGUI\formatResultInfo().

+ Here is the caller graph for this function:

◆ getJobResultMessage()

ilCronJobEntity::getJobResultMessage ( )

Definition at line 144 of file class.ilCronJobEntity.php.

144 : string
145 {
147 }

References $jobResultMessage.

Referenced by ilCronManagerTableGUI\formatResultInfo().

+ Here is the caller graph for this function:

◆ getJobResultStatus()

ilCronJobEntity::getJobResultStatus ( )

Definition at line 129 of file class.ilCronJobEntity.php.

129 : int
130 {
132 }

References $jobResultStatus.

Referenced by ilCronManagerTableFilterMediator\filteredJobs(), ilCronManagerTableGUI\formatResult(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getJobResultTimestamp()

ilCronJobEntity::getJobResultTimestamp ( )

Definition at line 154 of file class.ilCronJobEntity.php.

154 : int
155 {
157 }

References $jobResultTimestamp.

Referenced by ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getJobResultType()

ilCronJobEntity::getJobResultType ( )

Definition at line 149 of file class.ilCronJobEntity.php.

149 : int
150 {
152 }

References $jobResultType.

Referenced by ilCronManagerTableGUI\formatResultInfo().

+ Here is the caller graph for this function:

◆ getJobResultUsrId()

ilCronJobEntity::getJobResultUsrId ( )

Definition at line 134 of file class.ilCronJobEntity.php.

134 : int
135 {
137 }

References $jobResultUsrId.

Referenced by ilCronManagerTableGUI\formatResultInfo().

+ Here is the caller graph for this function:

◆ getJobStatus()

ilCronJobEntity::getJobStatus ( )

Definition at line 109 of file class.ilCronJobEntity.php.

109 : int
110 {
111 return $this->jobStatus;
112 }

References $jobStatus.

Referenced by ilCronManagerTableFilterMediator\filteredJobs(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getJobStatusTimestamp()

ilCronJobEntity::getJobStatusTimestamp ( )

Definition at line 124 of file class.ilCronJobEntity.php.

124 : int
125 {
127 }

References $jobStatusTimestamp.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

+ Here is the caller graph for this function:

◆ getJobStatusType()

ilCronJobEntity::getJobStatusType ( )

Definition at line 119 of file class.ilCronJobEntity.php.

119 : int
120 {
122 }

References $jobStatusType.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

+ Here is the caller graph for this function:

◆ getJobStatusUsrId()

ilCronJobEntity::getJobStatusUsrId ( )

Definition at line 114 of file class.ilCronJobEntity.php.

114 : int
115 {
117 }

References $jobStatusUsrId.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

+ Here is the caller graph for this function:

◆ getPath()

ilCronJobEntity::getPath ( )

Definition at line 164 of file class.ilCronJobEntity.php.

164 : string
165 {
166 return $this->path;
167 }

References $path.

◆ getRunningTimestamp()

ilCronJobEntity::getRunningTimestamp ( )

Definition at line 169 of file class.ilCronJobEntity.php.

169 : int
170 {
172 }

References $runningTimestamp.

Referenced by ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getScheduleType()

ilCronJobEntity::getScheduleType ( )

Definition at line 99 of file class.ilCronJobEntity.php.

99 : int
100 {
101 return $this->scheduleType;
102 }

References $scheduleType.

Referenced by getEffectiveScheduleType(), getEffectiveScheduleValue(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ getScheduleValue()

ilCronJobEntity::getScheduleValue ( )

Definition at line 104 of file class.ilCronJobEntity.php.

104 : int
105 {
107 }

References $scheduleValue.

Referenced by getEffectiveScheduleValue().

+ Here is the caller graph for this function:

◆ isPlugin()

ilCronJobEntity::isPlugin ( )

Definition at line 184 of file class.ilCronJobEntity.php.

184 : bool
185 {
186 return $this->isPlugin;
187 }

References $isPlugin.

Referenced by __construct(), ilCronManagerTableFilterMediator\filter(), ilCronManagerTableFilterMediator\filteredJobs(), getEffectiveTitle(), and ilCronManagerTableGUI\populate().

+ Here is the caller graph for this function:

◆ mapRecord()

ilCronJobEntity::mapRecord ( array  $record)
private
Parameters
array<string,mixed>$record

Definition at line 61 of file class.ilCronJobEntity.php.

61 : void
62 {
63 $this->jobId = (string) $record['job_id'];
64 $this->component = (string) $record['component'];
65 $this->scheduleType = (int) $record['schedule_type'];
66 $this->scheduleValue = (int) $record['schedule_value'];
67 $this->jobStatus = (int) $record['job_status'];
68 $this->jobStatusUsrId = (int) $record['job_status_user_id'];
69 $this->jobStatusType = (int) $record['job_status_type'];
70 $this->jobStatusTimestamp = (int) $record['job_status_ts'];
71 $this->jobResultStatus = (int) $record['job_result_status'];
72 $this->jobResultUsrId = (int) $record['job_result_user_id'];
73 $this->jobResultCode = (string) $record['job_result_code'];
74 $this->jobResultMessage = (string) $record['job_result_message'];
75 $this->jobResultType = (int) $record['job_result_type'];
76 $this->jobResultTimestamp = (int) $record['job_result_ts'];
77 $this->class = (string) $record['class'];
78 $this->path = (string) $record['path'];
79 $this->runningTimestamp = (int) $record['running_ts'];
80 $this->jobResultDuration = (int) $record['job_result_dur'];
81 $this->aliveTimestamp = (int) $record['alive_ts'];
82 }

References ILIAS\Repository\int().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $aliveTimestamp

int ilCronJobEntity::$aliveTimestamp
private

Definition at line 43 of file class.ilCronJobEntity.php.

Referenced by getAliveTimestamp().

◆ $class

string ilCronJobEntity::$class
private

Definition at line 39 of file class.ilCronJobEntity.php.

Referenced by getClass().

◆ $component

string ilCronJobEntity::$component
private

Definition at line 26 of file class.ilCronJobEntity.php.

Referenced by getComponent().

◆ $isPlugin

bool ilCronJobEntity::$isPlugin
private

Definition at line 24 of file class.ilCronJobEntity.php.

Referenced by __construct(), and isPlugin().

◆ $job

ilCronJob ilCronJobEntity::$job
private

Definition at line 23 of file class.ilCronJobEntity.php.

Referenced by __construct(), and getJob().

◆ $jobId

string ilCronJobEntity::$jobId
private

Definition at line 25 of file class.ilCronJobEntity.php.

Referenced by getJobId().

◆ $jobResultCode

string ilCronJobEntity::$jobResultCode
private

Definition at line 35 of file class.ilCronJobEntity.php.

Referenced by getJobResultCode().

◆ $jobResultDuration

int ilCronJobEntity::$jobResultDuration
private

Definition at line 42 of file class.ilCronJobEntity.php.

Referenced by getJobResultDuration().

◆ $jobResultMessage

string ilCronJobEntity::$jobResultMessage
private

Definition at line 36 of file class.ilCronJobEntity.php.

Referenced by getJobResultMessage().

◆ $jobResultStatus

int ilCronJobEntity::$jobResultStatus
private

Definition at line 33 of file class.ilCronJobEntity.php.

Referenced by getJobResultStatus().

◆ $jobResultTimestamp

int ilCronJobEntity::$jobResultTimestamp
private

Definition at line 38 of file class.ilCronJobEntity.php.

Referenced by getJobResultTimestamp().

◆ $jobResultType

int ilCronJobEntity::$jobResultType
private

Definition at line 37 of file class.ilCronJobEntity.php.

Referenced by getJobResultType().

◆ $jobResultUsrId

int ilCronJobEntity::$jobResultUsrId
private

Definition at line 34 of file class.ilCronJobEntity.php.

Referenced by getJobResultUsrId().

◆ $jobStatus

int ilCronJobEntity::$jobStatus
private

Definition at line 29 of file class.ilCronJobEntity.php.

Referenced by getJobStatus().

◆ $jobStatusTimestamp

int ilCronJobEntity::$jobStatusTimestamp
private

Definition at line 32 of file class.ilCronJobEntity.php.

Referenced by getJobStatusTimestamp().

◆ $jobStatusType

int ilCronJobEntity::$jobStatusType
private

Definition at line 31 of file class.ilCronJobEntity.php.

Referenced by getJobStatusType().

◆ $jobStatusUsrId

int ilCronJobEntity::$jobStatusUsrId
private

Definition at line 30 of file class.ilCronJobEntity.php.

Referenced by getJobStatusUsrId().

◆ $path

string ilCronJobEntity::$path
private

Definition at line 40 of file class.ilCronJobEntity.php.

Referenced by getPath().

◆ $runningTimestamp

int ilCronJobEntity::$runningTimestamp
private

Definition at line 41 of file class.ilCronJobEntity.php.

Referenced by getRunningTimestamp().

◆ $scheduleType

int ilCronJobEntity::$scheduleType
private

Definition at line 27 of file class.ilCronJobEntity.php.

Referenced by getScheduleType().

◆ $scheduleValue

int ilCronJobEntity::$scheduleValue
private

Definition at line 28 of file class.ilCronJobEntity.php.

Referenced by getScheduleValue().


The documentation for this class was generated from the following file: