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