ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1 <?php
2 require_once "Services/Cron/classes/class.ilCronJob.php";
3 
11 
12  const ID = "orgunit_paths";
16  protected $db;
20  protected $log;
24  protected $tree;
25 
26 
30  public function getId() {
31  return self::ID;
32  }
33 
34 
38  public function getTitle() {
39  global $DIC;
40  $lng = $DIC['lng'];
41 
42  return $lng->txt("update_orgunits");
43  }
44 
45 
49  public function getDescription() {
50  global $DIC;
51  $lng = $DIC['lng'];
52 
53  return $lng->txt("update_orgunits_desc");
54  }
55 
56 
60  public function hasAutoActivation() {
61  return true;
62  }
63 
64 
68  public function hasFlexibleSchedule() {
69  return true;
70  }
71 
72 
76  public function getDefaultScheduleType() {
77  return self::SCHEDULE_TYPE_DAILY;
78  }
79 
80 
84  public function getDefaultScheduleValue() {
85  return;
86  }
87 
88 
92  public function run() {
93  require_once('./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php');
95  ilOrgUnitPathStorage::writePathByRefId($ref_id);
96  }
97  ilOrgUnitPathStorage::clearDeleted();
98  $result = new ilCronJobResult();
100 
101  return $result;
102  }
103 }
$result
Cron job application base class.
Class ilCronUpdateOrgUnitPaths.
$ref_id
Definition: sahs_server.php:39
global $lng
Definition: privfeed.php:17
global $DIC
Cron job result data container.