ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilCronJobResult Class Reference

Cron job result data container. More...

+ Collaboration diagram for ilCronJobResult:

Public Member Functions

 getStatus ()
 
 setStatus ($a_value)
 
 getMessage ()
 
 setMessage ($a_value)
 
 getCode ()
 
 setCode ($a_value)
 
 getDuration ()
 
 setDuration ($a_value)
 

Static Public Member Functions

static getCoreCodes ()
 

Data Fields

const STATUS_INVALID_CONFIGURATION = 1
 
const STATUS_NO_ACTION = 2
 
const STATUS_OK = 3
 
const STATUS_CRASHED = 4
 
const STATUS_RESET = 5
 
const STATUS_FAIL = 6
 
const CODE_NO_RESULT = 'job_no_result'
 
const CODE_MANUAL_RESET = 'job_manual_reset'
 
const CODE_SUPPOSED_CRASH = 'job_auto_deactivation_time_limit'
 

Protected Member Functions

 getValidStatus ()
 

Protected Attributes

 $status
 
 $message
 
 $code
 
 $duration
 

Detailed Description

Cron job result data container.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 11 of file class.ilCronJobResult.php.

Member Function Documentation

◆ getCode()

ilCronJobResult::getCode ( )

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

References $code.

Referenced by ilCronManager\updateJobResult().

70  {
71  return $this->code;
72  }
+ Here is the caller graph for this function:

◆ getCoreCodes()

static ilCronJobResult::getCoreCodes ( )
static
Returns
array

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

References array.

Referenced by ilCronManagerTableGUI\parseJobToData().

33  {
34  return array(
35  self::CODE_NO_RESULT, self::CODE_MANUAL_RESET, self::CODE_SUPPOSED_CRASH
36  );
37  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getDuration()

ilCronJobResult::getDuration ( )

Definition at line 79 of file class.ilCronJobResult.php.

References $duration.

Referenced by ilCronManager\updateJobResult().

80  {
81  return $this->duration;
82  }
+ Here is the caller graph for this function:

◆ getMessage()

ilCronJobResult::getMessage ( )

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

References $message.

Referenced by ilCronManager\updateJobResult().

60  {
61  return $this->message;
62  }
+ Here is the caller graph for this function:

◆ getStatus()

ilCronJobResult::getStatus ( )

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

References $status.

Referenced by ilCronManager\updateJobResult().

40  {
41  return $this->status;
42  }
+ Here is the caller graph for this function:

◆ getValidStatus()

ilCronJobResult::getValidStatus ( )
protected

Definition at line 53 of file class.ilCronJobResult.php.

References array.

Referenced by setStatus().

54  {
55  return array(self::STATUS_INVALID_CONFIGURATION, self::STATUS_NO_ACTION,
56  self::STATUS_OK, self::STATUS_CRASHED, self::STATUS_FAIL);
57  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ setCode()

ilCronJobResult::setCode (   $a_value)

Definition at line 74 of file class.ilCronJobResult.php.

75  {
76  $this->code = $a_value;
77  }

◆ setDuration()

ilCronJobResult::setDuration (   $a_value)

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

85  {
86  $this->duration = number_format($a_value, 3, ".", "");
87  }

◆ setMessage()

ilCronJobResult::setMessage (   $a_value)

Definition at line 64 of file class.ilCronJobResult.php.

65  {
66  $this->message = trim($a_value);
67  }

◆ setStatus()

ilCronJobResult::setStatus (   $a_value)

Definition at line 44 of file class.ilCronJobResult.php.

References getValidStatus().

45  {
46  $a_value = (int)$a_value;
47  if(in_array($a_value, $this->getValidStatus()))
48  {
49  $this->status = $a_value;
50  }
51  }
+ Here is the call graph for this function:

Field Documentation

◆ $code

ilCronJobResult::$code
protected

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

Referenced by getCode().

◆ $duration

ilCronJobResult::$duration
protected

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

Referenced by getDuration().

◆ $message

ilCronJobResult::$message
protected

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

Referenced by getMessage().

◆ $status

ilCronJobResult::$status
protected

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

Referenced by getStatus().

◆ CODE_MANUAL_RESET

const ilCronJobResult::CODE_MANUAL_RESET = 'job_manual_reset'

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

Referenced by ilCronManager\resetJob().

◆ CODE_NO_RESULT

const ilCronJobResult::CODE_NO_RESULT = 'job_no_result'

Definition at line 20 of file class.ilCronJobResult.php.

Referenced by ilCronManager\runJob().

◆ CODE_SUPPOSED_CRASH

const ilCronJobResult::CODE_SUPPOSED_CRASH = 'job_auto_deactivation_time_limit'

Definition at line 22 of file class.ilCronJobResult.php.

Referenced by ilCronManager\runJob().

◆ STATUS_CRASHED

const ilCronJobResult::STATUS_CRASHED = 4

◆ STATUS_FAIL

const ilCronJobResult::STATUS_FAIL = 6

◆ STATUS_INVALID_CONFIGURATION

const ilCronJobResult::STATUS_INVALID_CONFIGURATION = 1

◆ STATUS_NO_ACTION

◆ STATUS_OK

◆ STATUS_RESET

const ilCronJobResult::STATUS_RESET = 5

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