ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1 <?php
2 
10 {
11  const ID = "orgunit_paths";
15  protected $db;
19  protected $log;
23  protected $tree;
24 
25 
29  public function getId()
30  {
31  return self::ID;
32  }
33 
34 
38  public function getTitle()
39  {
40  global $DIC;
41  $lng = $DIC['lng'];
42 
43  return $lng->txt("update_orgunits");
44  }
45 
46 
50  public function getDescription()
51  {
52  global $DIC;
53  $lng = $DIC['lng'];
54 
55  return $lng->txt("update_orgunits_desc");
56  }
57 
58 
62  public function hasAutoActivation()
63  {
64  return true;
65  }
66 
67 
71  public function hasFlexibleSchedule()
72  {
73  return true;
74  }
75 
76 
80  public function getDefaultScheduleType()
81  {
82  return self::SCHEDULE_TYPE_DAILY;
83  }
84 
85 
89  public function getDefaultScheduleValue()
90  {
91  return;
92  }
93 
94 
98  public function run()
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  }
109 }
$result
global $DIC
Definition: saml.php:7
Cron job application base class.
Class ilCronUpdateOrgUnitPaths.
$lng
Cron job result data container.