ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1 <?php
25 {
26  public const ID = "orgunit_paths";
27  protected ilDBInterface $db;
28  protected ilLogger $log;
29  protected ilTree $tree;
30 
31  private ilLanguage $lng;
32 
33  public function __construct()
34  {
35  global $DIC;
36 
37  $this->lng = $DIC->language();
38  }
39 
40  public function getId(): string
41  {
42  return self::ID;
43  }
44 
45  public function getTitle(): string
46  {
47  return $this->lng->txt("update_orgunits");
48  }
49 
50  public function getDescription(): string
51  {
52  return $this->lng->txt("update_orgunits_desc");
53  }
54 
55  public function hasAutoActivation(): bool
56  {
57  return true;
58  }
59 
60  public function hasFlexibleSchedule(): bool
61  {
62  return true;
63  }
64 
65  public function getDefaultScheduleType(): int
66  {
67  return self::SCHEDULE_TYPE_DAILY;
68  }
69 
70  public function getDefaultScheduleValue(): ?int
71  {
72  return null;
73  }
74 
75  public function run(): ilCronJobResult
76  {
78  ilOrgUnitPathStorage::writePathByRefId($ref_id);
79  }
80  ilOrgUnitPathStorage::clearDeleted();
81  $result = new ilCronJobResult();
82  $result->setStatus(ilCronJobResult::STATUS_OK);
83 
84  return $result;
85  }
86 }
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:67