ILIAS  release_8 Revision v8.24
class.ilBookingPrefBookCron.php
Go to the documentation of this file.
1<?php
2
26{
27 protected ilLanguage $lng;
28
29 public function __construct()
30 {
31 global $DIC;
32
33 $this->lng = $DIC->language();
34 }
35
36 public function getId(): string
37 {
38 return "book_pref_book";
39 }
40
41 public function getTitle(): string
42 {
44
45 $lng->loadLanguageModule("book");
46
47 return $lng->txt("book_pref_book_cron");
48 }
49
50 public function getDescription(): string
51 {
53
54 $lng->loadLanguageModule("book");
55
56 return $lng->txt("book_pref_book_cron_info");
57 }
58
59 public function getDefaultScheduleType(): int
60 {
62 }
63
64 public function getDefaultScheduleValue(): ?int
65 {
66 return null;
67 }
68
69 public function hasAutoActivation(): bool
70 {
71 return true;
72 }
73
74 public function hasFlexibleSchedule(): bool
75 {
76 return true;
77 }
78
79 public function run(): ilCronJobResult
80 {
82 $message = "";
83
84 $auto_book = new ilBookingPrefAutoBooking();
85 $auto_book->run();
86
87 $cron_status = ilCronJobResult::STATUS_OK;
88
89 $cron_result = new ilCronJobResult();
90 $cron_result->setStatus($cron_status);
91
92 return $cron_result;
93 }
94}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
language handling
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
global $DIC
Definition: feed.php:28
$message
Definition: xapiexit.php:32