ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Cron management. More...
Static Public Member Functions | |
static | runActiveJobs () |
Run all active jobs. More... | |
static | runJobManual ($a_job_id) |
Run single job manually. More... | |
static | getJobInstanceById ($a_job_id) |
Get job instance (by job id) More... | |
static | getJobInstance ($a_id, $a_component, $a_class, $a_path=null) |
Get job instance (by job data) More... | |
static | createDefaultEntry (ilCronJob $a_job, $a_component, $a_class, $a_path) |
static | updateFromXML ($a_component, $a_id, $a_class, $a_path=null) |
Process data from module.xml/service.xml. More... | |
static | clearFromXML ($a_component, array $a_xml_job_ids) |
Clear job data. More... | |
static | getPluginJobs ($a_only_active=false) |
static | getCronJobData ($a_id=null, $a_include_inactive=true) |
Get cron job configuration/execution data. More... | |
static | resetJob (ilCronJob $a_job) |
Reset job. More... | |
static | activateJob (ilCronJob $a_job, $a_manual=false) |
Activate cron job. More... | |
static | deactivateJob (ilCronJob $a_job, $a_manual=false) |
Deactivate cron job. More... | |
static | isJobActive ($a_job_id) |
Check if given job is currently active. More... | |
static | isJobInactive ($a_job_id) |
Check if given job is currently inactive. More... | |
static | updateJobSchedule (ilCronJob $a_job, $a_schedule_type, $a_schedule_value) |
Update job schedule. More... | |
static | ping ($a_job_id) |
Keep cron job alive. More... | |
Static Protected Member Functions | |
static | runJob (ilCronJob $a_job, array $a_job_data=null, $a_manual=false) |
Run single cron job (internal) More... | |
static | sendNotification (ilCronJob $a_job, $a_message) |
Send notification to admin about job event(s) More... | |
static | updateJobResult (ilCronJob $a_job, ilCronJobResult $a_result, $a_manual=false) |
Save job result. More... | |
static | getMicrotime () |
Get current microtime. More... | |
Cron management.
Definition at line 11 of file class.ilCronManager.php.
|
static |
Activate cron job.
ilCronJob | $a_job | |
bool | $a_manual |
Definition at line 577 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJob\activationWasToggled(), ilCronJob\getId(), and time.
Referenced by ilCronManagerGUI\confirmedActivate().
|
static |
Clear job data.
string | $a_component | |
array | $a_xml_job_ids |
Definition at line 416 of file class.ilCronManager.php.
References $ilDB, $ilLog, $row, and array.
Referenced by ilObjDefReader\handlerEndTag().
|
static |
Definition at line 323 of file class.ilCronManager.php.
References $ilDB, $ilLog, $ilSetting, $row, ilCronJob\activationWasToggled(), ilCronJob\getDefaultScheduleType(), ilCronJob\getDefaultScheduleValue(), ilCronJob\getId(), ilCronJob\hasAutoActivation(), and ilCronJob\hasFlexibleSchedule().
Referenced by getJobInstanceById(), and getPluginJobs().
|
static |
Deactivate cron job.
ilCronJob | $a_job | |
bool | $a_manual |
Definition at line 600 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJob\activationWasToggled(), ilCronJob\getId(), and time.
Referenced by ilCronManagerGUI\confirmedDeactivate().
|
static |
Get cron job configuration/execution data.
array | string | $a_id | |
array | $a_include_inactive |
Definition at line 503 of file class.ilCronManager.php.
References $ilDB, $res, $row, array, and IL_COMP_PLUGIN.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronDeleteInactiveUserAccounts\calculateDeletionData(), ilCronManagerTableGUI\getItems(), getJobInstanceById(), getPluginJobs(), and ilCronManagerGUI\initEditForm().
|
static |
Get job instance (by job data)
string | $a_component | |
string | $a_class | |
string | $a_path |
Definition at line 267 of file class.ilCronManager.php.
References $ilLog.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), and ilCronManagerTableGUI\getItems().
|
static |
Get job instance (by job id)
string | $a_job_id |
Definition at line 216 of file class.ilCronManager.php.
References $ilLog, createDefaultEntry(), getCronJobData(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronManagerGUI\getMultiActionData(), ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\update().
|
staticprotected |
|
static |
Definition at line 463 of file class.ilCronManager.php.
References $res, array, createDefaultEntry(), getCronJobData(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronManagerTableGUI\getItems().
|
static |
Check if given job is currently active.
string | $a_job_id |
Definition at line 623 of file class.ilCronManager.php.
Referenced by ilCronManagerGUI\confirmedDeactivate(), ilCronManagerGUI\confirmedReset(), ilObjForumAdministrationGUI\editSettings(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjContentObjectGUI\linkChecker(), and ilLPObjectStatisticsGUI\showCronJobInfo().
|
static |
Check if given job is currently inactive.
string | $a_job_id |
Definition at line 639 of file class.ilCronManager.php.
Referenced by ilCronManagerGUI\confirmedActivate().
|
static |
Keep cron job alive.
string | $a_job_id |
Definition at line 713 of file class.ilCronManager.php.
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilLPCronObjectStatistics\gatherTypesData(), ilLPCronObjectStatistics\gatherUserData(), ilForumCronNotification\keepAlive(), ilMembershipCronNotifications\run(), and ilLDAPCronSynchronization\run().
|
static |
Reset job.
ilCronJob | $a_job |
Definition at line 551 of file class.ilCronManager.php.
References $ilDB, $result, ilCronJobResult\CODE_MANUAL_RESET, ilCronJob\getId(), and ilCronJobResult\STATUS_RESET.
Referenced by ilCronManagerGUI\confirmedActivate(), and ilCronManagerGUI\confirmedReset().
|
static |
Run all active jobs.
Definition at line 16 of file class.ilCronManager.php.
References $ilLog, $ilSetting, $row, ilUtil\_getHttpPath(), defined, and time.
|
staticprotected |
Run single cron job (internal)
ilCronJob | $a_job | |
array | $a_job_data | |
bool | $a_manual |
Definition at line 97 of file class.ilCronManager.php.
References $ilDB, $ilLog, $result, ilCronJobResult\CODE_NO_RESULT, ilCronJobResult\CODE_SUPPOSED_CRASH, ilCronJob\getId(), ilCronJob\isActive(), ilCronJob\run(), ilCronJobResult\STATUS_CRASHED, ilCronJobResult\STATUS_INVALID_CONFIGURATION, and time.
|
static |
Run single job manually.
string | $a_job_id |
Definition at line 59 of file class.ilCronManager.php.
References $ilLog, and $result.
Referenced by ilCronManagerGUI\confirmedRun().
|
staticprotected |
Send notification to admin about job event(s)
ilCronJob | $a_job | |
string | $a_message |
Definition at line 318 of file class.ilCronManager.php.
|
static |
Process data from module.xml/service.xml.
string | $a_component | |
string | $a_id | |
string | $a_class | |
string | $_path |
Definition at line 393 of file class.ilCronManager.php.
References $ilDB.
Referenced by ilObjDefReader\handlerBeginTag().
|
staticprotected |
Save job result.
ilCronJob | $a_job | |
ilCronJobResult | $a_result | |
bool | $a_manual |
Definition at line 656 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJobResult\getCode(), ilCronJobResult\getDuration(), ilCronJob\getId(), ilCronJobResult\getMessage(), ilCronJobResult\getStatus(), and time.
|
static |
Update job schedule.
ilCronJob | $a_job | |
int | $a_schedule_type | |
int | $a_schedule_value |
Definition at line 681 of file class.ilCronManager.php.
References $ilDB, ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by ilCronManagerTableGUI\parseJobToData(), and ilCronManagerGUI\update().