ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCronJobEntity Class Reference

Class ilCronJobEntity. More...

+ 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

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

Detailed Description

Class ilCronJobEntity.

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

Constructor & Destructor Documentation

◆ __construct()

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

ilCronJobEntity constructor.

Parameters
ilCronJob$job
array$record
bool$isPlugin

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

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

60  {
61  $this->job = $job;
62  $this->isPlugin = $isPlugin;
63  $this->mapRecord($record);
64  }
mapRecord(array $record)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAliveTimestamp()

ilCronJobEntity::getAliveTimestamp ( )
Returns
int

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

References $aliveTimestamp.

Referenced by ilCronManagerTableGUI\populate().

247  : int
248  {
249  return $this->aliveTimestamp;
250  }
+ Here is the caller graph for this function:

◆ getClass()

ilCronJobEntity::getClass ( )
Returns
string

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

References $class.

215  : string
216  {
217  return $this->class;
218  }

◆ getComponent()

ilCronJobEntity::getComponent ( )
Returns
string

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

References $component.

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

111  : string
112  {
113  return $this->component;
114  }
+ Here is the caller graph for this function:

◆ getEffectiveScheduleType()

ilCronJobEntity::getEffectiveScheduleType ( )
Returns
int

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

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

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

263  : int
264  {
265  $type = $this->getScheduleType();
266  if (!$this->getJob()->hasFlexibleSchedule() || !$type) {
267  $type = (int) $this->getJob()->getDefaultScheduleType();
268  }
269 
270  return $type;
271  }
$type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEffectiveScheduleValue()

ilCronJobEntity::getEffectiveScheduleValue ( )
Returns
int

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

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

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

276  : int
277  {
278  $type = $this->getScheduleType();
279  $value = $this->getScheduleValue();
280  if (!$this->getJob()->hasFlexibleSchedule() || !$type) {
281  $value = (int) $this->getJob()->getDefaultScheduleValue();
282  }
283 
284  return $value;
285  }
$type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEffectiveTitle()

ilCronJobEntity::getEffectiveTitle ( )
Returns
string

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

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

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

290  : string
291  {
292  $id = $this->getJobId();
293  if ($this->isPlugin()) {
294  $id = 'pl__' . $this->getComponent() . '__' . $id;
295  }
296 
297  $title = (string) $this->getJob()->getTitle();
298  if (0 === strlen($title)) {
299  $title = $id;
300  }
301 
302  return $title;
303  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getJob()

ilCronJobEntity::getJob ( )
Returns
ilCronJob

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

References $job.

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

95  : ilCronJob
96  {
97  return $this->job;
98  }
Cron job application base class.
+ Here is the caller graph for this function:

◆ getJobId()

ilCronJobEntity::getJobId ( )
Returns
string

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

References $jobId.

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

103  : string
104  {
105  return $this->jobId;
106  }
+ Here is the caller graph for this function:

◆ getJobResultCode()

ilCronJobEntity::getJobResultCode ( )
Returns
string

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

References $jobResultCode.

Referenced by ilCronManagerTableGUI\formatResultInfo().

183  : string
184  {
185  return $this->jobResultCode;
186  }
+ Here is the caller graph for this function:

◆ getJobResultDuration()

ilCronJobEntity::getJobResultDuration ( )
Returns
int

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

References $jobResultDuration.

Referenced by ilCronManagerTableGUI\formatResultInfo().

239  : int
240  {
242  }
+ Here is the caller graph for this function:

◆ getJobResultMessage()

ilCronJobEntity::getJobResultMessage ( )
Returns
string

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

References $jobResultMessage.

Referenced by ilCronManagerTableGUI\formatResultInfo().

191  : string
192  {
194  }
+ Here is the caller graph for this function:

◆ getJobResultStatus()

ilCronJobEntity::getJobResultStatus ( )
Returns
int

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

References $jobResultStatus.

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

167  : int
168  {
169  return $this->jobResultStatus;
170  }
+ Here is the caller graph for this function:

◆ getJobResultTimestamp()

ilCronJobEntity::getJobResultTimestamp ( )
Returns
int

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

References $jobResultTimestamp.

Referenced by ilCronManagerTableGUI\populate().

207  : int
208  {
210  }
+ Here is the caller graph for this function:

◆ getJobResultType()

ilCronJobEntity::getJobResultType ( )
Returns
int

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

References $jobResultType.

Referenced by ilCronManagerTableGUI\formatResultInfo().

199  : int
200  {
201  return $this->jobResultType;
202  }
+ Here is the caller graph for this function:

◆ getJobResultUsrId()

ilCronJobEntity::getJobResultUsrId ( )
Returns
int

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

References $jobResultUsrId.

Referenced by ilCronManagerTableGUI\formatResultInfo().

175  : int
176  {
177  return $this->jobResultUsrId;
178  }
+ Here is the caller graph for this function:

◆ getJobStatus()

ilCronJobEntity::getJobStatus ( )
Returns
int

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

References $jobStatus.

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

135  : int
136  {
137  return $this->jobStatus;
138  }
+ Here is the caller graph for this function:

◆ getJobStatusTimestamp()

ilCronJobEntity::getJobStatusTimestamp ( )
Returns
int

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

References $jobStatusTimestamp.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

159  : int
160  {
162  }
+ Here is the caller graph for this function:

◆ getJobStatusType()

ilCronJobEntity::getJobStatusType ( )
Returns
int

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

References $jobStatusType.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

151  : int
152  {
153  return $this->jobStatusType;
154  }
+ Here is the caller graph for this function:

◆ getJobStatusUsrId()

ilCronJobEntity::getJobStatusUsrId ( )
Returns
int

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

References $jobStatusUsrId.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

143  : int
144  {
145  return $this->jobStatusUsrId;
146  }
+ Here is the caller graph for this function:

◆ getPath()

ilCronJobEntity::getPath ( )
Returns
string

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

References $path.

223  : string
224  {
225  return $this->path;
226  }

◆ getRunningTimestamp()

ilCronJobEntity::getRunningTimestamp ( )
Returns
int

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

References $runningTimestamp.

Referenced by ilCronManagerTableGUI\populate().

231  : int
232  {
234  }
+ Here is the caller graph for this function:

◆ getScheduleType()

ilCronJobEntity::getScheduleType ( )
Returns
int

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

References $scheduleType.

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

119  : int
120  {
121  return $this->scheduleType;
122  }
+ Here is the caller graph for this function:

◆ getScheduleValue()

ilCronJobEntity::getScheduleValue ( )
Returns
int

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

References $scheduleValue.

Referenced by getEffectiveScheduleValue().

127  : int
128  {
129  return $this->scheduleValue;
130  }
+ Here is the caller graph for this function:

◆ isPlugin()

ilCronJobEntity::isPlugin ( )
Returns
bool

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

References $isPlugin.

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

255  : bool
256  {
257  return $this->isPlugin;
258  }
+ Here is the caller graph for this function:

◆ mapRecord()

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

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

Referenced by __construct().

69  : void
70  {
71  $this->jobId = (string) $record['job_id'];
72  $this->component = (string) $record['component'];
73  $this->scheduleType = (int) $record['schedule_type'];
74  $this->scheduleValue = (int) $record['schedule_value'];
75  $this->jobStatus = (int) $record['job_status'];
76  $this->jobStatusUsrId = (int) $record['job_status_user_id'];
77  $this->jobStatusType = (int) $record['job_status_type'];
78  $this->jobStatusTimestamp = (int) $record['job_status_ts'];
79  $this->jobResultStatus = (int) $record['job_result_status'];
80  $this->jobResultUsrId = (int) $record['job_result_user_id'];
81  $this->jobResultCode = (string) $record['job_result_code'];
82  $this->jobResultMessage = (string) $record['job_result_message'];
83  $this->jobResultType = (int) $record['job_result_type'];
84  $this->jobResultTimestamp = (int) $record['job_result_ts'];
85  $this->class = (string) $record['class'];
86  $this->path = (string) $record['path'];
87  $this->runningTimestamp = (int) $record['running_ts'];
88  $this->jobResultDuration = (int) $record['job_result_dur'];
89  $this->aliveTimestamp = (int) $record['alive_ts'];
90  }
+ Here is the caller graph for this function:

Field Documentation

◆ $aliveTimestamp

ilCronJobEntity::$aliveTimestamp
private

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

Referenced by getAliveTimestamp().

◆ $class

ilCronJobEntity::$class
private

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

Referenced by getClass().

◆ $component

ilCronJobEntity::$component
private

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

Referenced by getComponent().

◆ $isPlugin

ilCronJobEntity::$isPlugin
private

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

Referenced by __construct(), and isPlugin().

◆ $job

ilCronJobEntity::$job
private

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

Referenced by __construct(), and getJob().

◆ $jobId

ilCronJobEntity::$jobId
private

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

Referenced by getJobId().

◆ $jobResultCode

ilCronJobEntity::$jobResultCode
private

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

Referenced by getJobResultCode().

◆ $jobResultDuration

ilCronJobEntity::$jobResultDuration
private

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

Referenced by getJobResultDuration().

◆ $jobResultMessage

ilCronJobEntity::$jobResultMessage
private

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

Referenced by getJobResultMessage().

◆ $jobResultStatus

ilCronJobEntity::$jobResultStatus
private

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

Referenced by getJobResultStatus().

◆ $jobResultTimestamp

ilCronJobEntity::$jobResultTimestamp
private

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

Referenced by getJobResultTimestamp().

◆ $jobResultType

ilCronJobEntity::$jobResultType
private

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

Referenced by getJobResultType().

◆ $jobResultUsrId

ilCronJobEntity::$jobResultUsrId
private

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

Referenced by getJobResultUsrId().

◆ $jobStatus

ilCronJobEntity::$jobStatus
private

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

Referenced by getJobStatus().

◆ $jobStatusTimestamp

ilCronJobEntity::$jobStatusTimestamp
private

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

Referenced by getJobStatusTimestamp().

◆ $jobStatusType

ilCronJobEntity::$jobStatusType
private

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

Referenced by getJobStatusType().

◆ $jobStatusUsrId

ilCronJobEntity::$jobStatusUsrId
private

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

Referenced by getJobStatusUsrId().

◆ $path

ilCronJobEntity::$path
private

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

Referenced by getPath().

◆ $runningTimestamp

ilCronJobEntity::$runningTimestamp
private

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

Referenced by getRunningTimestamp().

◆ $scheduleType

ilCronJobEntity::$scheduleType
private

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

Referenced by getScheduleType().

◆ $scheduleValue

ilCronJobEntity::$scheduleValue
private

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

Referenced by getScheduleValue().


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