ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1<?php
2
22
29{
30 public const ID = "orgunit_paths";
31 protected ilDBInterface $db;
32 protected ilLogger $log;
33 protected ilTree $tree;
34
36
37 public function __construct()
38 {
39 global $DIC;
40
41 $this->lng = $DIC->language();
42 }
43
44 public function getId(): string
45 {
46 return self::ID;
47 }
48
49 public function getTitle(): string
50 {
51 return $this->lng->txt("update_orgunits");
52 }
53
54 public function getDescription(): string
55 {
56 return $this->lng->txt("update_orgunits_desc");
57 }
58
59 public function hasAutoActivation(): bool
60 {
61 return true;
62 }
63
64 public function hasFlexibleSchedule(): bool
65 {
66 return true;
67 }
68
70 {
71 return JobScheduleType::DAILY;
72 }
73
74 public function getDefaultScheduleValue(): ?int
75 {
76 return null;
77 }
78
79 public function run(): JobResult
80 {
82 ilOrgUnitPathStorage::writePathByRefId($ref_id);
83 }
84 ilOrgUnitPathStorage::clearDeleted();
85 $result = new JobResult();
86 $result->setStatus(JobResult::STATUS_OK);
87
88 return $result;
89 }
90}
Class ilCronUpdateOrgUnitPaths.
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
language handling
Component logger with individual log levels by component id.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Interface ilDBInterface.
$ref_id
Definition: ltiauth.php:66
global $DIC
Definition: shib_login.php:26