ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilCronUpdateOrgUnitPaths Class Reference

Class ilCronUpdateOrgUnitPaths. More...

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

Public Member Functions

 __construct ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 hasAutoActivation ()
 
 hasFlexibleSchedule ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 run ()
 
- Public Member Functions inherited from ilCronJob
 setDateTimeProvider (?Closure $date_time_provider)
 
 isDue (?DateTimeImmutable $last_run, ?CronJobScheduleType $schedule_type, ?int $schedule_value, bool $is_manually_executed=false)
 
 getScheduleType ()
 Get current schedule type (if flexible) More...
 
 getScheduleValue ()
 Get current schedule value (if flexible) More...
 
 setSchedule (?CronJobScheduleType $a_type, ?int $a_value)
 Update current schedule (if flexible) More...
 
 getAllScheduleTypes ()
 Get all available schedule types. More...
 
 getScheduleTypesWithValues ()
 
 getValidScheduleTypes ()
 Returns a collection of all valid schedule types for a specific job. More...
 
 isManuallyExecutable ()
 
 hasCustomSettings ()
 
 addCustomSettingsToForm (ilPropertyFormGUI $a_form)
 
 saveCustomSettings (ilPropertyFormGUI $a_form)
 
 addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active)
 
 activationWasToggled (ilDBInterface $db, ilSetting $setting, bool $a_currently_active)
 Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed. More...
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 hasAutoActivation ()
 Is to be activated on "installation", does only work for ILIAS core cron jobs. More...
 
 hasFlexibleSchedule ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 run ()
 

Data Fields

const ID = "orgunit_paths"
 

Protected Attributes

ilDBInterface $db
 
ilLogger $log
 
ilTree $tree
 
- Protected Attributes inherited from ilCronJob
CronJobScheduleType $schedule_type = null
 
int $schedule_value = null
 
Closure $date_time_provider = null
 

Private Attributes

ilLanguage $lng
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCronUpdateOrgUnitPaths::__construct ( )

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

References $DIC, and ILIAS\Repository\lng().

36  {
37  global $DIC;
38 
39  $this->lng = $DIC->language();
40  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getDefaultScheduleType()

ilCronUpdateOrgUnitPaths::getDefaultScheduleType ( )

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

68  {
69  return CronJobScheduleType::SCHEDULE_TYPE_DAILY;
70  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getDefaultScheduleValue()

ilCronUpdateOrgUnitPaths::getDefaultScheduleValue ( )

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

72  : ?int
73  {
74  return null;
75  }

◆ getDescription()

ilCronUpdateOrgUnitPaths::getDescription ( )

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

References ILIAS\Repository\lng().

52  : string
53  {
54  return $this->lng->txt("update_orgunits_desc");
55  }
+ Here is the call graph for this function:

◆ getId()

ilCronUpdateOrgUnitPaths::getId ( )

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

42  : string
43  {
44  return self::ID;
45  }

◆ getTitle()

ilCronUpdateOrgUnitPaths::getTitle ( )

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

References ILIAS\Repository\lng().

47  : string
48  {
49  return $this->lng->txt("update_orgunits");
50  }
+ Here is the call graph for this function:

◆ hasAutoActivation()

ilCronUpdateOrgUnitPaths::hasAutoActivation ( )

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

57  : bool
58  {
59  return true;
60  }

◆ hasFlexibleSchedule()

ilCronUpdateOrgUnitPaths::hasFlexibleSchedule ( )

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

62  : bool
63  {
64  return true;
65  }

◆ run()

ilCronUpdateOrgUnitPaths::run ( )

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

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

78  {
80  ilOrgUnitPathStorage::writePathByRefId($ref_id);
81  }
82  ilOrgUnitPathStorage::clearDeleted();
83  $result = new ilCronJobResult();
84  $result->setStatus(ilCronJobResult::STATUS_OK);
85 
86  return $result;
87  }
$ref_id
Definition: ltiauth.php:67
+ Here is the call graph for this function:

Field Documentation

◆ $db

ilDBInterface ilCronUpdateOrgUnitPaths::$db
protected

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

◆ $lng

ilLanguage ilCronUpdateOrgUnitPaths::$lng
private

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

◆ $log

ilLogger ilCronUpdateOrgUnitPaths::$log
protected

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

◆ $tree

ilTree ilCronUpdateOrgUnitPaths::$tree
protected

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

◆ ID

const ilCronUpdateOrgUnitPaths::ID = "orgunit_paths"

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


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