ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
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 Attributes | |
JobScheduleType | $schedule_type = null |
int | $schedule_value = null |
Closure | $date_time_provider = null |
Private Member Functions | |
checkWeeklySchedule (\DateTimeImmutable $last_run, \DateTimeImmutable $now) | |
checkSchedule (?\DateTimeImmutable $last_run, ?JobScheduleType $schedule_type, ?int $schedule_value) | |
Definition at line 26 of file CronJob.php.
ILIAS\Cron\CronJob::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.
Furthermore only few dependencies may be available in the $DIC.
Definition at line 287 of file CronJob.php.
References ILIAS\Cron\CronJob\getDefaultScheduleType(), ILIAS\Cron\CronJob\getDefaultScheduleValue(), ILIAS\Cron\CronJob\getDescription(), ILIAS\Cron\CronJob\getId(), ILIAS\Cron\CronJob\getTitle(), ILIAS\Cron\CronJob\hasAutoActivation(), ILIAS\Cron\CronJob\hasFlexibleSchedule(), ILIAS\Repository\int(), and ILIAS\Cron\CronJob\run().
ILIAS\Cron\CronJob::addCustomSettingsToForm | ( | \ilPropertyFormGUI | $a_form | ) |
Definition at line 253 of file CronJob.php.
Referenced by ilCronManagerGUI\initLegacyEditForm().
ILIAS\Cron\CronJob::addToExternalSettingsForm | ( | int | $a_form_id, |
array & | $a_fields, | ||
bool | $a_is_active | ||
) |
array<string,mixed> | $a_fields |
Definition at line 279 of file CronJob.php.
|
private |
Definition at line 43 of file CronJob.php.
References ILIAS\Cron\CronJob\$date_time_provider, ILIAS\Cron\CronJob\checkWeeklySchedule(), null, and ILIAS\Cron\Job\Schedule\YEARLY.
Referenced by ILIAS\Cron\CronJob\isDue().
|
private |
Definition at line 32 of file CronJob.php.
Referenced by ILIAS\Cron\CronJob\checkSchedule().
ILIAS\Cron\CronJob::getAllScheduleTypes | ( | ) |
Get all available schedule types.
Definition at line 196 of file CronJob.php.
Referenced by ILIAS\Cron\CronJob\getValidScheduleTypes(), ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\initLegacyEditForm().
ILIAS\Cron\CronJob::getCustomConfigurationInput | ( | \ILIAS\UI\Factory | $ui_factory, |
\ILIAS\Refinery\Factory | $factory, | ||
\ilLanguage | $lng | ||
) |
Definition at line 241 of file CronJob.php.
Referenced by ilCronManagerGUI\initEditForm().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled(), and ILIAS\Cron\CronJob\isDue().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled(), and ILIAS\Cron\CronJob\isDue().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled(), ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\initLegacyEditForm().
ILIAS\Cron\CronJob::getScheduleType | ( | ) |
Get current schedule type (if flexible)
Definition at line 156 of file CronJob.php.
References ILIAS\Cron\CronJob\$schedule_type, ILIAS\Cron\CronJob\hasFlexibleSchedule(), and null.
Referenced by CronJobScheduleTest\testWeeklySchedules().
ILIAS\Cron\CronJob::getScheduleTypesWithValues | ( | ) |
Definition at line 204 of file CronJob.php.
Referenced by ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\initLegacyEditForm().
ILIAS\Cron\CronJob::getScheduleValue | ( | ) |
Get current schedule value (if flexible)
Definition at line 168 of file CronJob.php.
References ILIAS\Cron\CronJob\$schedule_value, ILIAS\Cron\CronJob\hasFlexibleSchedule(), and null.
Referenced by CronJobScheduleTest\testWeeklySchedules().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled(), ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\initLegacyEditForm().
ILIAS\Cron\CronJob::getValidScheduleTypes | ( | ) |
Returns a collection of all valid schedule types for a specific job.
Definition at line 217 of file CronJob.php.
References ILIAS\Cron\CronJob\getAllScheduleTypes().
Referenced by ilCronManagerGUI\initEditForm(), ilCronManagerGUI\initLegacyEditForm(), and ILIAS\Cron\CronJob\setSchedule().
|
abstract |
Is to be activated on "installation", does only work for ILIAS core cron jobs.
Referenced by ILIAS\Cron\CronJob\activationWasToggled().
ILIAS\Cron\CronJob::hasCustomSettings | ( | ) |
Definition at line 227 of file CronJob.php.
Referenced by ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\initLegacyEditForm().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled(), ILIAS\Cron\CronJob\getScheduleType(), ILIAS\Cron\CronJob\getScheduleValue(), ilCronManagerGUI\initEditForm(), ilCronManagerGUI\initLegacyEditForm(), ILIAS\Cron\CronJob\isDue(), and ILIAS\Cron\CronJob\setSchedule().
ILIAS\Cron\CronJob::isDue | ( | ?\DateTimeImmutable | $last_run, |
?JobScheduleType | $schedule_type, | ||
?int | $schedule_value, | ||
bool | $is_manually_executed = false |
||
) |
Definition at line 135 of file CronJob.php.
References ILIAS\Cron\CronJob\checkSchedule(), ILIAS\Cron\CronJob\getDefaultScheduleType(), ILIAS\Cron\CronJob\getDefaultScheduleValue(), and ILIAS\Cron\CronJob\hasFlexibleSchedule().
Referenced by CronJobScheduleTest\testSchedule(), and CronJobScheduleTest\testWeeklySchedules().
ILIAS\Cron\CronJob::isManuallyExecutable | ( | ) |
Definition at line 222 of file CronJob.php.
Referenced by ilCronManagerGUI\confirm().
|
abstract |
Referenced by ILIAS\Cron\CronJob\activationWasToggled().
ILIAS\Cron\CronJob::saveCustomConfiguration | ( | mixed | $form_data | ) |
mixed | $form_data | The form data provided by the KS (::getData)). The types and structure depend on the structure provided by getCustomConfigurationInput . It might be a single value or a array<string, mixed> -like structure. |
Definition at line 262 of file CronJob.php.
ILIAS\Cron\CronJob::saveCustomSettings | ( | \ilPropertyFormGUI | $a_form | ) |
ILIAS\Cron\CronJob::setDateTimeProvider | ( | ?\Closure | $date_time_provider | ) |
Definition at line 105 of file CronJob.php.
References ILIAS\Cron\CronJob\$date_time_provider, $r, and null.
ILIAS\Cron\CronJob::setSchedule | ( | ?JobScheduleType | $a_type, |
?int | $a_value | ||
) |
Update current schedule (if flexible)
Definition at line 180 of file CronJob.php.
References ILIAS\Cron\CronJob\getValidScheduleTypes(), and ILIAS\Cron\CronJob\hasFlexibleSchedule().
ILIAS\Cron\CronJob::usesLegacyForms | ( | ) |
|
protected |
Definition at line 30 of file CronJob.php.
Referenced by ILIAS\Cron\CronJob\checkSchedule(), and ILIAS\Cron\CronJob\setDateTimeProvider().
|
protected |
Definition at line 28 of file CronJob.php.
Referenced by ILIAS\Cron\CronJob\getScheduleType().
|
protected |
Definition at line 29 of file CronJob.php.
Referenced by ILIAS\Cron\CronJob\getScheduleValue().