ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
getId () | |
getTitle () | |
getDescription () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
hasAutoActivation () | |
Is to be activated on "installation", does only work for ILIAS core cron jobs. More... | |
hasFlexibleSchedule () | |
hasCustomSettings () | |
run () | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
![]() | |
setDateTimeProvider (?\Closure $date_time_provider) | |
isDue (?\DateTimeImmutable $last_run, ?JobScheduleType $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 (?JobScheduleType $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 () | |
usesLegacyForms () | |
getCustomConfigurationInput (\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, \ilLanguage $lng) | |
addCustomSettingsToForm (\ilPropertyFormGUI $a_form) | |
saveCustomConfiguration (mixed $form_data) | |
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 () | |
Protected Member Functions | |
isDecimal ($number) | |
getTimeDifferenceBySchedule (JobScheduleType $schedule_time, int $multiplier) | |
calculateDeletionData (int $date_for_deletion) | |
Private Member Functions | |
loadSettings () | |
deleteUserOrSendReminderMail ($usr_id) | |
Private Attributes | |
const | DEFAULT_INACTIVITY_PERIOD = 365 |
const | DEFAULT_REMINDER_PERIOD = 0 |
const | ACTION_USER_NONE = 0 |
const | ACTION_USER_REMINDER_MAIL_SENT = 1 |
const | ACTION_USER_DELETED = 2 |
int | $delete_period |
int | $reminder_period |
array | $include_roles |
ilCronDeleteInactiveUserReminderMail | $cron_delete_reminder_mail |
ilSetting | $settings |
Language | $lng |
ilComponentLogger | $log |
ilRbacReview | $rbac_review |
ilObjectDataCache | $objectDataCache |
ILIAS HTTP GlobalHttpState | $http |
ILIAS Refinery Factory | $refinery |
JobRepository | $cronRepository |
ilGlobalTemplateInterface | $main_tpl |
Additional Inherited Members | |
![]() | |
JobScheduleType | $schedule_type = null |
int | $schedule_value = null |
Closure | $date_time_provider = null |
Definition at line 33 of file class.ilCronDeleteInactiveUserAccounts.php.
ilCronDeleteInactiveUserAccounts::addCustomSettingsToForm | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 301 of file class.ilCronDeleteInactiveUserAccounts.php.
References ilPropertyFormGUI\addItem(), ANONYMOUS_ROLE_ID, ilPropertyFormGUI\getItemByPostVar(), ILIAS\Repository\lng(), ILIAS\Repository\objectDataCache(), and ILIAS\Repository\settings().
|
protected |
Definition at line 279 of file class.ilCronDeleteInactiveUserAccounts.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), getId(), getTimeDifferenceBySchedule(), and ILIAS\Repository\int().
Referenced by deleteUserOrSendReminderMail().
|
private |
Definition at line 251 of file class.ilCronDeleteInactiveUserAccounts.php.
References ACTION_USER_DELETED, ACTION_USER_NONE, ACTION_USER_REMINDER_MAIL_SENT, calculateDeletionData(), and ilObjectFactory\getInstanceByObjId().
Referenced by run().
ilCronDeleteInactiveUserAccounts::getDefaultScheduleType | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 184 of file class.ilCronDeleteInactiveUserAccounts.php.
ilCronDeleteInactiveUserAccounts::getDefaultScheduleValue | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 189 of file class.ilCronDeleteInactiveUserAccounts.php.
ilCronDeleteInactiveUserAccounts::getDescription | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 179 of file class.ilCronDeleteInactiveUserAccounts.php.
References ILIAS\Repository\lng().
ilCronDeleteInactiveUserAccounts::getId | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 169 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by calculateDeletionData().
|
protected |
Definition at line 135 of file class.ilCronDeleteInactiveUserAccounts.php.
References ILIAS\Cron\Job\Schedule\YEARLY.
Referenced by calculateDeletionData().
ilCronDeleteInactiveUserAccounts::getTitle | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 174 of file class.ilCronDeleteInactiveUserAccounts.php.
References ILIAS\Repository\lng().
ilCronDeleteInactiveUserAccounts::hasAutoActivation | ( | ) |
Is to be activated on "installation", does only work for ILIAS core cron jobs.
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 194 of file class.ilCronDeleteInactiveUserAccounts.php.
ilCronDeleteInactiveUserAccounts::hasCustomSettings | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 204 of file class.ilCronDeleteInactiveUserAccounts.php.
ilCronDeleteInactiveUserAccounts::hasFlexibleSchedule | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 199 of file class.ilCronDeleteInactiveUserAccounts.php.
|
protected |
string | int | $number |
Definition at line 128 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by saveCustomSettings().
|
private |
Definition at line 103 of file class.ilCronDeleteInactiveUserAccounts.php.
References $include_roles, DEFAULT_INACTIVITY_PERIOD, DEFAULT_REMINDER_PERIOD, ILIAS\Repository\int(), and ILIAS\Repository\settings().
ilCronDeleteInactiveUserAccounts::run | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 209 of file class.ilCronDeleteInactiveUserAccounts.php.
References $reminder_period, ANONYMOUS_USER_ID, deleteUserOrSendReminderMail(), ilObjUser\getUserIdsByInactivityPeriod(), and SYSTEM_USER_ID.
ilCronDeleteInactiveUserAccounts::saveCustomSettings | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 360 of file class.ilCronDeleteInactiveUserAccounts.php.
References $delete_period, $reminder_period, $valid, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ilPropertyFormGUI\getItemByPostVar(), ILIAS\FileDelivery\http(), isDecimal(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), and ILIAS\Cron\Job\Schedule\YEARLY.
|
private |
Definition at line 46 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 54 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 42 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by saveCustomSettings().
|
private |
Definition at line 52 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 45 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by loadSettings().
|
private |
Definition at line 48 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 49 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 55 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 51 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 50 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 53 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 43 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by run(), and saveCustomSettings().
|
private |
Definition at line 47 of file class.ilCronDeleteInactiveUserAccounts.php.
|
private |
Definition at line 40 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by deleteUserOrSendReminderMail().
|
private |
Definition at line 38 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by deleteUserOrSendReminderMail().
|
private |
Definition at line 39 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by deleteUserOrSendReminderMail().
|
private |
Definition at line 35 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by loadSettings().
|
private |
Definition at line 36 of file class.ilCronDeleteInactiveUserAccounts.php.
Referenced by loadSettings().