ILIAS  release_8 Revision v8.24
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
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 {
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}
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
Interface ilDBInterface.
$ref_id
Definition: ltiauth.php:67