ILIAS  release_8 Revision v8.23
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.

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

52  {
53  $this->job = $job;
54  $this->isPlugin = $isPlugin;
55  $this->mapRecord($record);
56  }
mapRecord(array $record)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAliveTimestamp()

ilCronJobEntity::getAliveTimestamp ( )

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

References $aliveTimestamp.

Referenced by ilCronManagerTableGUI\populate().

179  : int
180  {
181  return $this->aliveTimestamp;
182  }
+ Here is the caller graph for this function:

◆ getClass()

ilCronJobEntity::getClass ( )

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

References $class.

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

◆ getComponent()

ilCronJobEntity::getComponent ( )

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

References $component.

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

94  : string
95  {
96  return $this->component;
97  }
+ Here is the caller graph for this function:

◆ getEffectiveScheduleType()

ilCronJobEntity::getEffectiveScheduleType ( )

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

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

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

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
+ 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.

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

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

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  }
$type
+ 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.

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

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

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
+ 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.

References $job.

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

84  : ilCronJob
85  {
86  return $this->job;
87  }
+ Here is the caller graph for this function:

◆ getJobId()

ilCronJobEntity::getJobId ( )

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

References $jobId.

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

89  : string
90  {
91  return $this->jobId;
92  }
+ Here is the caller graph for this function:

◆ getJobResultCode()

ilCronJobEntity::getJobResultCode ( )

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

References $jobResultCode.

Referenced by ilCronManagerTableGUI\formatResultInfo().

139  : string
140  {
141  return $this->jobResultCode;
142  }
+ Here is the caller graph for this function:

◆ getJobResultDuration()

ilCronJobEntity::getJobResultDuration ( )

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

References $jobResultDuration.

Referenced by ilCronManagerTableGUI\formatResultInfo().

174  : int
175  {
177  }
+ Here is the caller graph for this function:

◆ getJobResultMessage()

ilCronJobEntity::getJobResultMessage ( )

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

References $jobResultMessage.

Referenced by ilCronManagerTableGUI\formatResultInfo().

144  : string
145  {
147  }
+ Here is the caller graph for this function:

◆ getJobResultStatus()

ilCronJobEntity::getJobResultStatus ( )

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

References $jobResultStatus.

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

129  : int
130  {
131  return $this->jobResultStatus;
132  }
+ Here is the caller graph for this function:

◆ getJobResultTimestamp()

ilCronJobEntity::getJobResultTimestamp ( )

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

References $jobResultTimestamp.

Referenced by ilCronManagerTableGUI\populate().

154  : int
155  {
157  }
+ Here is the caller graph for this function:

◆ getJobResultType()

ilCronJobEntity::getJobResultType ( )

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

References $jobResultType.

Referenced by ilCronManagerTableGUI\formatResultInfo().

149  : int
150  {
151  return $this->jobResultType;
152  }
+ Here is the caller graph for this function:

◆ getJobResultUsrId()

ilCronJobEntity::getJobResultUsrId ( )

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

References $jobResultUsrId.

Referenced by ilCronManagerTableGUI\formatResultInfo().

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

◆ getJobStatus()

ilCronJobEntity::getJobStatus ( )

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

References $jobStatus.

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

109  : int
110  {
111  return $this->jobStatus;
112  }
+ Here is the caller graph for this function:

◆ getJobStatusTimestamp()

ilCronJobEntity::getJobStatusTimestamp ( )

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

References $jobStatusTimestamp.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

124  : int
125  {
127  }
+ Here is the caller graph for this function:

◆ getJobStatusType()

ilCronJobEntity::getJobStatusType ( )

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

References $jobStatusType.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

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

◆ getJobStatusUsrId()

ilCronJobEntity::getJobStatusUsrId ( )

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

References $jobStatusUsrId.

Referenced by ilCronManagerTableGUI\formatStatusInfo().

114  : int
115  {
116  return $this->jobStatusUsrId;
117  }
+ Here is the caller graph for this function:

◆ getPath()

ilCronJobEntity::getPath ( )

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

References $path.

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

◆ getRunningTimestamp()

ilCronJobEntity::getRunningTimestamp ( )

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

References $runningTimestamp.

Referenced by ilCronManagerTableGUI\populate().

169  : int
170  {
172  }
+ Here is the caller graph for this function:

◆ getScheduleType()

ilCronJobEntity::getScheduleType ( )

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

References $scheduleType.

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

99  : int
100  {
101  return $this->scheduleType;
102  }
+ Here is the caller graph for this function:

◆ getScheduleValue()

ilCronJobEntity::getScheduleValue ( )

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

References $scheduleValue.

Referenced by getEffectiveScheduleValue().

104  : int
105  {
106  return $this->scheduleValue;
107  }
+ Here is the caller graph for this function:

◆ isPlugin()

ilCronJobEntity::isPlugin ( )

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

References $isPlugin.

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

184  : bool
185  {
186  return $this->isPlugin;
187  }
+ 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.

References ILIAS\Repository\int().

Referenced by __construct().

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  }
+ 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: