|
| __construct () |
|
| getId () |
|
| getTitle () |
|
| getDescription () |
|
| getDefaultScheduleType () |
|
| getDefaultScheduleValue () |
|
| hasAutoActivation () |
|
| hasFlexibleSchedule () |
|
| hasCustomSettings () |
|
| run () |
|
| addCustomSettingsToForm (ilPropertyFormGUI $a_form) |
|
| saveCustomSettings (ilPropertyFormGUI $a_form) |
|
| setDateTimeProvider (?Closure $date_time_provider) |
|
| isDue (?DateTimeImmutable $last_run, ?int $schedule_type, ?int $schedule_value, bool $is_manually_executed=false) |
|
| getScheduleType () |
| Get current schedule type (if flexible) More...
|
|
| getScheduleValue () |
| Get current schedule value (if flexible) More...
|
|
| setSchedule (?int $a_type, ?int $a_value) |
| Update current schedule (if flexible) More...
|
|
| getAllScheduleTypes () |
| Get all available schedule types. More...
|
|
| getScheduleTypesWithValues () |
|
| getValidScheduleTypes () |
| Returns a collection of all valid schedule types for a specific job. More...
|
|
| isManuallyExecutable () |
|
| hasCustomSettings () |
|
| addCustomSettingsToForm (ilPropertyFormGUI $a_form) |
|
| saveCustomSettings (ilPropertyFormGUI $a_form) |
|
| addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active) |
|
| activationWasToggled (ilDBInterface $db, ilSetting $setting, bool $a_currently_active) |
| Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed. More...
|
|
| getId () |
|
| getTitle () |
|
| getDescription () |
|
| hasAutoActivation () |
| Is to be activated on "installation", does only work for ILIAS core cron jobs. More...
|
|
| hasFlexibleSchedule () |
|
| getDefaultScheduleType () |
|
| getDefaultScheduleValue () |
|
| run () |
|
◆ __construct()
ilCronDeleteInactivatedUserAccounts::__construct |
( |
| ) |
|
Definition at line 41 of file class.ilCronDeleteInactivatedUserAccounts.php.
References $DIC, ILIAS\FileDelivery\http(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
46 if (isset($DIC[
'http'])) {
47 $this->
http = $DIC->http();
50 if (isset($DIC[
'lng'])) {
51 $this->
lng = $DIC->language();
54 if (isset($DIC[
'refinery'])) {
58 if (isset($DIC[
'ilObjDataCache'])) {
59 $this->objectDataCache = $DIC[
'ilObjDataCache'];
62 if (isset($DIC[
'rbacreview'])) {
63 $this->rbacReview = $DIC->rbac()->review();
66 $rbacreview = $DIC->rbac()->review();
67 $ilObjDataCache = $DIC[
'ilObjDataCache'];
69 if ($DIC[
'ilSetting']) {
73 'cron_inactivated_user_delete_include_roles',
77 $this->include_roles = [];
79 $this->include_roles = array_filter(array_map(
'intval', explode(
',',
$include_roles)));
83 'cron_inactivated_user_delete_period',
84 (
string) self::DEFAULT_INACTIVITY_PERIOD
static http()
Fetches the global http state from ILIAS.
◆ addCustomSettingsToForm()
ilCronDeleteInactivatedUserAccounts::addCustomSettingsToForm |
( |
ilPropertyFormGUI |
$a_form | ) |
|
Definition at line 177 of file class.ilCronDeleteInactivatedUserAccounts.php.
References ilPropertyFormGUI\addItem(), ilNumberInputGUI\allowDecimals(), ANONYMOUS_ROLE_ID, ILIAS\Repository\lng(), ilFormPropertyGUI\setInfo(), and ILIAS\Repository\settings().
180 $this->
lng->txt(
'delete_inactivated_user_accounts_include_roles'),
181 'cron_inactivated_user_delete_include_roles' 183 $sub_mlist->
setInfo($this->
lng->txt(
'delete_inactivated_user_accounts_include_roles_desc'));
185 foreach ($this->rbacReview->getGlobalRoles() as $role_id) {
187 $roles[$role_id] = $this->objectDataCache->lookupTitle($role_id);
190 $sub_mlist->setOptions($roles);
191 $setting = $this->
settings->get(
'cron_inactivated_user_delete_include_roles', null);
192 if ($setting === null) {
195 $setting = explode(
',', $setting);
197 $sub_mlist->setValue($setting);
198 $sub_mlist->setWidth(300);
202 $this->
lng->txt(
'delete_inactivated_user_accounts_period'),
203 'cron_inactivated_user_delete_period' 206 $sub_text->setInfo($this->
lng->txt(
'delete_inactivated_user_accounts_period_desc'));
209 'cron_inactivated_user_delete_period',
210 (
string) self::DEFAULT_INACTIVITY_PERIOD
213 $sub_text->setSize(4);
214 $sub_text->setMaxLength(4);
215 $sub_text->setRequired(
true);
◆ getDefaultScheduleType()
ilCronDeleteInactivatedUserAccounts::getDefaultScheduleType |
( |
| ) |
|
◆ getDefaultScheduleValue()
ilCronDeleteInactivatedUserAccounts::getDefaultScheduleValue |
( |
| ) |
|
◆ getDescription()
ilCronDeleteInactivatedUserAccounts::getDescription |
( |
| ) |
|
◆ getId()
ilCronDeleteInactivatedUserAccounts::getId |
( |
| ) |
|
◆ getTitle()
ilCronDeleteInactivatedUserAccounts::getTitle |
( |
| ) |
|
◆ hasAutoActivation()
ilCronDeleteInactivatedUserAccounts::hasAutoActivation |
( |
| ) |
|
◆ hasCustomSettings()
ilCronDeleteInactivatedUserAccounts::hasCustomSettings |
( |
| ) |
|
◆ hasFlexibleSchedule()
ilCronDeleteInactivatedUserAccounts::hasFlexibleSchedule |
( |
| ) |
|
◆ run()
ilCronDeleteInactivatedUserAccounts::run |
( |
| ) |
|
◆ saveCustomSettings()
Definition at line 219 of file class.ilCronDeleteInactivatedUserAccounts.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
221 $roles = implode(
',', $this->
http->wrapper()->post()->retrieve(
222 'cron_inactivated_user_delete_include_roles',
224 $this->refinery->kindlyTo()->listOf($this->
refinery->kindlyTo()->int()),
229 $period = $this->
http->wrapper()->post()->retrieve(
230 'cron_inactivated_user_delete_period',
232 $this->refinery->kindlyTo()->int(),
237 $this->
settings->set(
'cron_inactivated_user_delete_include_roles', $roles);
238 $this->
settings->set(
'cron_inactivated_user_delete_period', (
string) ($period ?? self::DEFAULT_INACTIVITY_PERIOD));
static http()
Fetches the global http state from ILIAS.
◆ $http
ILIAS HTTP GlobalHttpState ilCronDeleteInactivatedUserAccounts::$http |
|
private |
◆ $include_roles
array ilCronDeleteInactivatedUserAccounts::$include_roles |
|
private |
◆ $lng
ilLanguage ilCronDeleteInactivatedUserAccounts::$lng |
|
private |
◆ $objectDataCache
◆ $period
int ilCronDeleteInactivatedUserAccounts::$period |
|
private |
◆ $rbacReview
ilRbacReview ilCronDeleteInactivatedUserAccounts::$rbacReview |
|
private |
◆ $refinery
ILIAS Refinery Factory ilCronDeleteInactivatedUserAccounts::$refinery |
|
private |
◆ $settings
ilSetting ilCronDeleteInactivatedUserAccounts::$settings |
|
private |
◆ DEFAULT_INACTIVITY_PERIOD
const ilCronDeleteInactivatedUserAccounts::DEFAULT_INACTIVITY_PERIOD = 365 |
|
private |
The documentation for this class was generated from the following file: