|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Cron management. More...
Collaboration diagram for ilCronManager: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 580 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJob\activationWasToggled(), and ilCronJob\getId().
Referenced by ilCronManagerGUI\confirmedActivate(), createDefaultEntry(), and resetJob().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Clear job data.
| string | $a_component | |
| array | $a_xml_job_ids |
Definition at line 419 of file class.ilCronManager.php.
References $ilDB, $ilLog, and $row.
Referenced by ilObjDefReader\handlerEndTag().
Here is the caller graph for this function:
|
static |
Definition at line 326 of file class.ilCronManager.php.
References $ilDB, $ilLog, $ilSetting, $row, activateJob(), ilCronJob\activationWasToggled(), ilCronJob\getDefaultScheduleType(), ilCronJob\getDefaultScheduleValue(), ilCronJob\getId(), ilCronJob\hasAutoActivation(), ilCronJob\hasFlexibleSchedule(), and updateJobSchedule().
Referenced by getJobInstanceById(), getPluginJobs(), and updateFromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Deactivate cron job.
| ilCronJob | $a_job | |
| bool | $a_manual |
Definition at line 603 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJob\activationWasToggled(), and ilCronJob\getId().
Referenced by ilCronManagerGUI\confirmedDeactivate(), and runJob().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get cron job configuration/execution data.
| array | string | $a_id | |
| array | $a_include_inactive |
Definition at line 506 of file class.ilCronManager.php.
References $ilDB, $res, $row, and IL_COMP_PLUGIN.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronDeleteInactiveUserAccounts\calculateDeletionData(), ilCronManagerTableGUI\getItems(), getJobInstanceById(), getPluginJobs(), ilCronManagerGUI\initEditForm(), isJobActive(), and isJobInactive().
Here is the caller graph for this function:
|
static |
Get job instance (by job data)
| string | $a_component | |
| string | $a_class | |
| string | $a_path |
Definition at line 270 of file class.ilCronManager.php.
References $ilLog.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronManagerTableGUI\getItems(), getJobInstanceById(), and updateFromXML().
Here is the caller graph for this function:
|
static |
Get job instance (by job id)
| string | $a_job_id |
Definition at line 219 of file class.ilCronManager.php.
References $ilLog, createDefaultEntry(), getCronJobData(), getJobInstance(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronManagerGUI\confirmedReset(), ilCronManagerGUI\getMultiActionData(), ilCronManagerGUI\initEditForm(), runActiveJobs(), runJobManual(), and ilCronManagerGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Get current microtime.
Definition at line 705 of file class.ilCronManager.php.
Referenced by runJob().
Here is the caller graph for this function:
|
static |
Definition at line 466 of file class.ilCronManager.php.
References $res, createDefaultEntry(), getCronJobData(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronManagerTableGUI\getItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if given job is currently active.
| string | $a_job_id |
Definition at line 626 of file class.ilCronManager.php.
References getCronJobData().
Referenced by ilCronManagerGUI\confirmedDeactivate(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjContentObjectGUI\linkChecker(), and ilLPObjectStatisticsGUI\showCronJobInfo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if given job is currently inactive.
| string | $a_job_id |
Definition at line 642 of file class.ilCronManager.php.
References getCronJobData().
Referenced by ilCronManagerGUI\confirmedActivate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Keep cron job alive.
| string | $a_job_id |
Definition at line 716 of file class.ilCronManager.php.
References $ilDB.
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilLPCronObjectStatistics\gatherTypesData(), ilLPCronObjectStatistics\gatherUserData(), ilForumCronNotification\keepAlive(), and ilMembershipCronNotifications\run().
Here is the caller graph for this function:
|
static |
Reset job.
| ilCronJob | $a_job |
Definition at line 554 of file class.ilCronManager.php.
References $ilDB, $result, activateJob(), ilCronJob\getId(), ilCronJobResult\STATUS_RESET, and updateJobResult().
Referenced by ilCronManagerGUI\confirmedActivate(), and ilCronManagerGUI\confirmedReset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Run all active jobs.
Definition at line 16 of file class.ilCronManager.php.
References $ilLog, $ilSetting, $row, ilUtil\_getHttpPath(), getJobInstanceById(), and runJob().
Here is the call graph for this function:
|
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, deactivateJob(), ilCronJob\getId(), getMicrotime(), ilCronJob\isActive(), ilCronJob\run(), sendNotification(), ilCronJobResult\STATUS_CRASHED, ilCronJobResult\STATUS_INVALID_CONFIGURATION, and updateJobResult().
Referenced by runActiveJobs(), and runJobManual().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Run single job manually.
| string | $a_job_id |
Definition at line 59 of file class.ilCronManager.php.
References $ilLog, $result, getJobInstanceById(), and runJob().
Referenced by ilCronManagerGUI\confirmedRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Send notification to admin about job event(s)
| ilCronJob | $a_job | |
| string | $a_message |
Definition at line 321 of file class.ilCronManager.php.
Referenced by runJob().
Here is the caller graph for this function:
|
static |
Process data from module.xml/service.xml.
| string | $a_component | |
| string | $a_id | |
| string | $a_class | |
| string | $_path |
Definition at line 396 of file class.ilCronManager.php.
References $ilDB, createDefaultEntry(), and getJobInstance().
Referenced by ilObjDefReader\handlerBeginTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Save job result.
| ilCronJob | $a_job | |
| ilCronJobResult | $a_result | |
| bool | $a_manual |
Definition at line 659 of file class.ilCronManager.php.
References $ilDB, $ilUser, ilCronJobResult\getCode(), ilCronJobResult\getDuration(), ilCronJob\getId(), ilCronJobResult\getMessage(), and ilCronJobResult\getStatus().
Referenced by resetJob(), and runJob().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Update job schedule.
| ilCronJob | $a_job | |
| int | $a_schedule_type | |
| int | $a_schedule_value |
Definition at line 684 of file class.ilCronManager.php.
References $ilDB, ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by createDefaultEntry(), ilCronManagerTableGUI\parseJobToData(), and ilCronManagerGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function: