|
| __construct () |
|
| getTitle () |
|
| getDescription () |
|
| getId () |
|
| hasAutoActivation () |
|
| hasFlexibleSchedule () |
|
| getDefaultScheduleType () |
|
| getDefaultScheduleValue () |
|
| run () |
|
| 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 () |
|
|
const | ID = 'prg_invalidate_expired_progresses' |
|
◆ __construct()
ilPrgInvalidateExpiredProgressesCronJob::__construct |
( |
| ) |
|
◆ getDefaultScheduleType()
ilPrgInvalidateExpiredProgressesCronJob::getDefaultScheduleType |
( |
| ) |
|
◆ getDefaultScheduleValue()
ilPrgInvalidateExpiredProgressesCronJob::getDefaultScheduleValue |
( |
| ) |
|
◆ getDescription()
ilPrgInvalidateExpiredProgressesCronJob::getDescription |
( |
| ) |
|
◆ getId()
ilPrgInvalidateExpiredProgressesCronJob::getId |
( |
| ) |
|
◆ getTitle()
ilPrgInvalidateExpiredProgressesCronJob::getTitle |
( |
| ) |
|
◆ hasAutoActivation()
ilPrgInvalidateExpiredProgressesCronJob::hasAutoActivation |
( |
| ) |
|
◆ hasFlexibleSchedule()
ilPrgInvalidateExpiredProgressesCronJob::hasFlexibleSchedule |
( |
| ) |
|
◆ run()
ilPrgInvalidateExpiredProgressesCronJob::run |
( |
| ) |
|
Definition at line 88 of file class.ilPrgInvalidateExpiredProgressesCronJob.php.
References Vendor\Package\$e.
91 $expired = $this->assignment_repo->getExpiredAndNotInvalidated();
93 if ($expired === []) {
94 $result->setStatus(JobResult::STATUS_NO_ACTION);
98 foreach ($expired as $assignment) {
100 $assignment = $assignment->invalidate($this->settings_repo);
101 $this->assignment_repo->store($assignment);
103 $this->log->write(
'an error occured: ' . $e->getMessage());
104 $result->setStatus(JobResult::STATUS_FAIL);
109 $result->setStatus(JobResult::STATUS_OK);
◆ $assignment_repo
◆ $lng
ilLanguage ilPrgInvalidateExpiredProgressesCronJob::$lng |
|
protected |
◆ $log
◆ $settings_repo
◆ ID
const ilPrgInvalidateExpiredProgressesCronJob::ID = 'prg_invalidate_expired_progresses' |
|
private |
The documentation for this class was generated from the following file: