ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilCronUpdateOrgUnitPaths Class Reference

Class ilCronUpdateOrgUnitPaths. More...

+ Inheritance diagram for ilCronUpdateOrgUnitPaths:
+ Collaboration diagram for ilCronUpdateOrgUnitPaths:

Public Member Functions

 getId ()
 
 getTitle ()
 
 getDescription ()
 
 hasAutoActivation ()
 
 hasFlexibleSchedule ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 run ()
 
- Public Member Functions inherited from ilCronJob
 isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false)
 Is job currently active? More...
 
 getScheduleType ()
 Get current schedule type (if flexible) More...
 
 getScheduleValue ()
 Get current schedule value (if flexible) More...
 
 setSchedule ($a_type, $a_value)
 Update current schedule (if flexible) More...
 
 getValidScheduleTypes ()
 Get all available schedule types. More...
 
 getTitle ()
 Get title. More...
 
 getDescription ()
 Get description. More...
 
 isManuallyExecutable ()
 Defines whether or not a cron job can be started manually. More...
 
 hasCustomSettings ()
 Has cron job any custom setting which can be edited? More...
 
 addCustomSettingsToForm (ilPropertyFormGUI $a_form)
 Add custom settings to form. More...
 
 saveCustomSettings (ilPropertyFormGUI $a_form)
 Save custom settings. More...
 
 addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active)
 Add external settings to form. More...
 
 activationWasToggled ($a_currently_active)
 Cron job status was changed. More...
 
 getId ()
 Get id. More...
 
 hasAutoActivation ()
 Is to be activated on "installation". More...
 
 hasFlexibleSchedule ()
 Can the schedule be configured? More...
 
 getDefaultScheduleType ()
 Get schedule type. More...
 
 getDefaultScheduleValue ()
 Get schedule value. More...
 
 run ()
 Run job. More...
 

Data Fields

const ID = "orgunit_paths"
 
- Data Fields inherited from ilCronJob
const SCHEDULE_TYPE_DAILY = 1
 
const SCHEDULE_TYPE_IN_MINUTES = 2
 
const SCHEDULE_TYPE_IN_HOURS = 3
 
const SCHEDULE_TYPE_IN_DAYS = 4
 
const SCHEDULE_TYPE_WEEKLY = 5
 
const SCHEDULE_TYPE_MONTHLY = 6
 
const SCHEDULE_TYPE_QUARTERLY = 7
 
const SCHEDULE_TYPE_YEARLY = 8
 

Protected Attributes

 $db
 
 $log
 
 $tree
 

Additional Inherited Members

- Protected Member Functions inherited from ilCronJob
 checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value)
 

Detailed Description

Member Function Documentation

◆ getDefaultScheduleType()

ilCronUpdateOrgUnitPaths::getDefaultScheduleType ( )
Returns
int

Definition at line 80 of file class.ilCronUpdateOrgUnitPaths.php.

81  {
82  return self::SCHEDULE_TYPE_DAILY;
83  }

◆ getDefaultScheduleValue()

ilCronUpdateOrgUnitPaths::getDefaultScheduleValue ( )

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

90  {
91  return;
92  }

◆ getDescription()

ilCronUpdateOrgUnitPaths::getDescription ( )
Returns
string

Definition at line 50 of file class.ilCronUpdateOrgUnitPaths.php.

References $DIC, and $lng.

51  {
52  global $DIC;
53  $lng = $DIC['lng'];
54 
55  return $lng->txt("update_orgunits_desc");
56  }
global $DIC
Definition: saml.php:7
global $lng
Definition: privfeed.php:17

◆ getId()

ilCronUpdateOrgUnitPaths::getId ( )
Returns
string

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

30  {
31  return self::ID;
32  }

◆ getTitle()

ilCronUpdateOrgUnitPaths::getTitle ( )
Returns
string

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

References $DIC, and $lng.

39  {
40  global $DIC;
41  $lng = $DIC['lng'];
42 
43  return $lng->txt("update_orgunits");
44  }
global $DIC
Definition: saml.php:7
global $lng
Definition: privfeed.php:17

◆ hasAutoActivation()

ilCronUpdateOrgUnitPaths::hasAutoActivation ( )
Returns
bool

Definition at line 62 of file class.ilCronUpdateOrgUnitPaths.php.

63  {
64  return true;
65  }

◆ hasFlexibleSchedule()

ilCronUpdateOrgUnitPaths::hasFlexibleSchedule ( )
Returns
bool

Definition at line 71 of file class.ilCronUpdateOrgUnitPaths.php.

72  {
73  return true;
74  }

◆ run()

ilCronUpdateOrgUnitPaths::run ( )
Returns
ilCronJobResult

Definition at line 98 of file class.ilCronUpdateOrgUnitPaths.php.

References $result, ilOrgUnitPathStorage\getAllOrguRefIds(), and ilCronJobResult\STATUS_OK.

99  {
100  foreach (ilOrgUnitPathStorage::getAllOrguRefIds() as $ref_id) {
101  ilOrgUnitPathStorage::writePathByRefId($ref_id);
102  }
103  ilOrgUnitPathStorage::clearDeleted();
104  $result = new ilCronJobResult();
106 
107  return $result;
108  }
$result
Cron job result data container.
+ Here is the call graph for this function:

Field Documentation

◆ $db

ilCronUpdateOrgUnitPaths::$db
protected

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

◆ $log

ilCronUpdateOrgUnitPaths::$log
protected

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

◆ $tree

ilCronUpdateOrgUnitPaths::$tree
protected

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

◆ ID

const ilCronUpdateOrgUnitPaths::ID = "orgunit_paths"

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


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