ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 {
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
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
Class ilCronUpdateOrgUnitPaths.
$lng
$DIC
Definition: xapitoken.php:46