|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilCronJob:
Collaboration diagram for ilCronJob:Public Member Functions | |
| setDateTimeProvider (?Closure $date_time_provider) | |
| isDue (?DateTimeImmutable $last_run, ?CronJobScheduleType $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 (?CronJobScheduleType $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 () | |
Protected Attributes | |
| CronJobScheduleType | $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, ?CronJobScheduleType $schedule_type, ?int $schedule_value) | |
Definition at line 23 of file class.ilCronJob.php.
| ilCronJob::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 268 of file class.ilCronJob.php.
References getDefaultScheduleType(), getDefaultScheduleValue(), getDescription(), getId(), getTitle(), hasAutoActivation(), hasFlexibleSchedule(), ILIAS\Repository\int(), and run().
Referenced by ilCronManagerImpl\activateJob(), ilCronJobRepositoryImpl\createDefaultEntry(), and ilCronManagerImpl\deactivateJob().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJob::addCustomSettingsToForm | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 251 of file class.ilCronJob.php.
| ilCronJob::addToExternalSettingsForm | ( | int | $a_form_id, |
| array & | $a_fields, | ||
| bool | $a_is_active | ||
| ) |
Definition at line 260 of file class.ilCronJob.php.
|
private |
Definition at line 67 of file class.ilCronJob.php.
References $date_time_provider, checkWeeklySchedule(), and ILIAS\Cron\Schedule\SCHEDULE_TYPE_YEARLY.
Referenced by isDue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 29 of file class.ilCronJob.php.
References ILIAS\Repository\int().
Referenced by checkSchedule().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJob::getAllScheduleTypes | ( | ) |
Get all available schedule types.
Definition at line 215 of file class.ilCronJob.php.
Referenced by getValidScheduleTypes().
Here is the caller graph for this function:
|
abstract |
Referenced by activationWasToggled(), ilCronJobRepositoryImpl\createDefaultEntry(), and isDue().
Here is the caller graph for this function:
|
abstract |
Referenced by activationWasToggled(), ilCronJobRepositoryImpl\createDefaultEntry(), and isDue().
Here is the caller graph for this function:
|
abstract |
|
abstract |
Referenced by ilCronJobRepositoryImpl\activateJob(), activationWasToggled(), ilCronJobRepositoryImpl\createDefaultEntry(), ilCronJobRepositoryImpl\deactivateJob(), ilCronJobRepositoryImpl\getJobInstance(), ilCronJobRepositoryImpl\resetJob(), ilCronManagerImpl\runJob(), ilCronJobRepositoryImpl\updateJobResult(), and ilCronJobRepositoryImpl\updateJobSchedule().
Here is the caller graph for this function:| ilCronJob::getScheduleType | ( | ) |
Get current schedule type (if flexible)
Definition at line 175 of file class.ilCronJob.php.
References $schedule_type, and hasFlexibleSchedule().
Referenced by CronJobScheduleTest\testWeeklySchedules().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJob::getScheduleTypesWithValues | ( | ) |
Definition at line 223 of file class.ilCronJob.php.
| ilCronJob::getScheduleValue | ( | ) |
Get current schedule value (if flexible)
Definition at line 187 of file class.ilCronJob.php.
References $schedule_value, and hasFlexibleSchedule().
Referenced by CronJobScheduleTest\testWeeklySchedules().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
| ilCronJob::getValidScheduleTypes | ( | ) |
Returns a collection of all valid schedule types for a specific job.
Definition at line 236 of file class.ilCronJob.php.
References getAllScheduleTypes().
Referenced by setSchedule(), and ilCronJobRepositoryImpl\updateJobSchedule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Is to be activated on "installation", does only work for ILIAS core cron jobs.
Referenced by activationWasToggled(), and ilCronJobRepositoryImpl\createDefaultEntry().
Here is the caller graph for this function:| ilCronJob::hasCustomSettings | ( | ) |
Definition at line 246 of file class.ilCronJob.php.
|
abstract |
Referenced by activationWasToggled(), ilCronJobRepositoryImpl\createDefaultEntry(), getScheduleType(), getScheduleValue(), isDue(), setSchedule(), and ilCronJobRepositoryImpl\updateJobSchedule().
Here is the caller graph for this function:| ilCronJob::isDue | ( | ?DateTimeImmutable | $last_run, |
| ?CronJobScheduleType | $schedule_type, | ||
| ?int | $schedule_value, | ||
| bool | $is_manually_executed = false |
||
| ) |
Definition at line 154 of file class.ilCronJob.php.
References checkSchedule(), getDefaultScheduleType(), getDefaultScheduleValue(), and hasFlexibleSchedule().
Referenced by ilCronManagerImpl\runJob(), CronJobScheduleTest\testSchedule(), and CronJobScheduleTest\testWeeklySchedules().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJob::isManuallyExecutable | ( | ) |
Definition at line 241 of file class.ilCronJob.php.
Referenced by ilCronManagerGUI\confirm().
Here is the caller graph for this function:
|
abstract |
Referenced by activationWasToggled(), and ilCronManagerImpl\runJob().
Here is the caller graph for this function:| ilCronJob::saveCustomSettings | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 255 of file class.ilCronJob.php.
| ilCronJob::setDateTimeProvider | ( | ?Closure | $date_time_provider | ) |
| Closure():DateTimeInterface|null | $date_time_provider |
Definition at line 126 of file class.ilCronJob.php.
References $date_time_provider, and $r.
Referenced by ilCronManagerImpl\runJob().
Here is the caller graph for this function:| ilCronJob::setSchedule | ( | ?CronJobScheduleType | $a_type, |
| ?int | $a_value | ||
| ) |
Update current schedule (if flexible)
Definition at line 199 of file class.ilCronJob.php.
References getValidScheduleTypes(), and hasFlexibleSchedule().
Here is the call graph for this function:
|
protected |
Definition at line 27 of file class.ilCronJob.php.
Referenced by checkSchedule(), and setDateTimeProvider().
|
protected |
Definition at line 25 of file class.ilCronJob.php.
Referenced by getScheduleType().
|
protected |
Definition at line 26 of file class.ilCronJob.php.
Referenced by getScheduleValue().