ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilCronEcsTaskScheduler. More...
Public Member Functions | |
__construct () | |
ilCronEcsTaskScheduler constructor. More... | |
getTitle () | |
getDescription () | |
getId () | |
Get id. More... | |
hasAutoActivation () | |
Is to be activated on "installation". More... | |
hasFlexibleSchedule () | |
Can the schedule be configured? More... | |
getDefaultScheduleType () | |
Get schedule type. More... | |
getDefaultScheduleValue () | |
Get schedule value. More... | |
run () | |
Run job. More... | |
![]() | |
isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false) | |
Is job currently active? More... | |
getScheduleType () | |
Get current schedule type (if flexible) More... | |
getScheduleValue () | |
Get current schedule value (if flexible) More... | |
setSchedule ($a_type, $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... | |
getTitle () | |
Get title. More... | |
getDescription () | |
Get description. More... | |
isManuallyExecutable () | |
Defines whether or not a cron job can be started manually. More... | |
hasCustomSettings () | |
Has cron job any custom setting which can be edited? More... | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
Add custom settings to form. More... | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
Save custom settings. More... | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
Add external settings to form. More... | |
activationWasToggled ($a_currently_active) | |
Cron job status was changed. More... | |
getId () | |
Get id. More... | |
hasAutoActivation () | |
Is to be activated on "installation". More... | |
hasFlexibleSchedule () | |
Can the schedule be configured? More... | |
getDefaultScheduleType () | |
Get schedule type. More... | |
getDefaultScheduleValue () | |
Get schedule value. More... | |
run () | |
Run job. More... | |
Data Fields | |
const | ID = 'ecs_task_handler' |
const | DEFAULT_SCHEDULE_VALUE = 1 |
![]() | |
const | SCHEDULE_TYPE_DAILY = 1 |
const | SCHEDULE_TYPE_IN_MINUTES = 2 |
const | SCHEDULE_TYPE_IN_HOURS = 3 |
const | SCHEDULE_TYPE_IN_DAYS = 4 |
const | SCHEDULE_TYPE_WEEKLY = 5 |
const | SCHEDULE_TYPE_MONTHLY = 6 |
const | SCHEDULE_TYPE_QUARTERLY = 7 |
const | SCHEDULE_TYPE_YEARLY = 8 |
Protected Attributes | |
$lng = null | |
$result = null | |
Private Attributes | |
$logger = null | |
Additional Inherited Members | |
![]() | |
checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Class ilCronEcsTaskScheduler.
Start execution of ecs tasks.
Definition at line 10 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::__construct | ( | ) |
ilCronEcsTaskScheduler constructor.
Definition at line 41 of file class.ilCronEcsTaskScheduler.php.
References $DIC.
ilCronEcsTaskScheduler::getDefaultScheduleType | ( | ) |
ilCronEcsTaskScheduler::getDefaultScheduleValue | ( | ) |
Get schedule value.
Definition at line 115 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::getDescription | ( | ) |
Definition at line 63 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::getId | ( | ) |
ilCronEcsTaskScheduler::getTitle | ( | ) |
Definition at line 55 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::hasAutoActivation | ( | ) |
Is to be activated on "installation".
Definition at line 83 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::hasFlexibleSchedule | ( | ) |
Can the schedule be configured?
Definition at line 93 of file class.ilCronEcsTaskScheduler.php.
ilCronEcsTaskScheduler::run | ( | ) |
Run job.
Definition at line 125 of file class.ilCronEcsTaskScheduler.php.
References Vendor\Package\$e, $result, $server, ilECSTaskScheduler\_getInstanceByServerId(), ilECSServerSettings\getInstance(), ilCronJobResult\STATUS_CRASHED, and ilCronJobResult\STATUS_OK.
|
protected |
Definition at line 31 of file class.ilCronEcsTaskScheduler.php.
|
private |
Definition at line 26 of file class.ilCronEcsTaskScheduler.php.
|
protected |
Definition at line 36 of file class.ilCronEcsTaskScheduler.php.
Referenced by run().
const ilCronEcsTaskScheduler::DEFAULT_SCHEDULE_VALUE = 1 |
Definition at line 21 of file class.ilCronEcsTaskScheduler.php.
const ilCronEcsTaskScheduler::ID = 'ecs_task_handler' |
Definition at line 16 of file class.ilCronEcsTaskScheduler.php.