|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Cron management. More...
Inheritance diagram for ilCronManager:
Collaboration diagram for ilCronManager:Public Member Functions | |
| __construct (\ilSetting $settings, \ilLogger $logger) | |
| ilCronManager constructor. More... | |
| runActiveJobs () | |
| Run all active jobs. More... | |
| runActiveJobs () | |
| Run all active jobs. More... | |
Static Public Member Functions | |
| 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... | |
Protected Attributes | |
| $settings | |
| $logger | |
Cron management.
Definition at line 10 of file class.ilCronManager.php.
ilCronManager constructor.
| \ilSetting | $settings | |
| \ilLogger | $logger |
Definition at line 27 of file class.ilCronManager.php.
References $logger, $settings, and settings().
Here is the call graph for this function:
|
static |
Activate cron job.
| ilCronJob | $a_job | |
| bool | $a_manual |
Definition at line 619 of file class.ilCronManager.php.
References $DIC, $ilDB, 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 468 of file class.ilCronManager.php.
Referenced by ilObjDefReader\handlerEndTag().
Here is the caller graph for this function:
|
static |
Definition at line 355 of file class.ilCronManager.php.
References $c, $DIC, $ilDB, $ilSetting, 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 647 of file class.ilCronManager.php.
References $DIC, $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 550 of file class.ilCronManager.php.
References $DIC, $ilDB, $res, and IL_COMP_PLUGIN.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronDeleteInactiveUserAccounts\calculateDeletionData(), ilCronJobRepositoryImpl\findAll(), getJobInstanceById(), getPluginJobs(), ilCronManagerGUI\initEditForm(), isJobActive(), isJobInactive(), ilLTICronOutcomeService\run(), and runJob().
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 305 of file class.ilCronManager.php.
References $_SERVER, and $DIC.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronJobRepositoryImpl\findAll(), 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 248 of file class.ilCronManager.php.
References $DIC, createDefaultEntry(), getCronJobData(), getJobInstance(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by 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 751 of file class.ilCronManager.php.
Referenced by runJob().
Here is the caller graph for this function:
|
static |
Definition at line 510 of file class.ilCronManager.php.
References $DIC, $res, createDefaultEntry(), getCronJobData(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronJobRepositoryImpl\findAll().
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 672 of file class.ilCronManager.php.
References getCronJobData().
Referenced by ilCronManagerGUI\confirmedDeactivate(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjContentObjectGUI\linkChecker(), ilObjForumAdministrationGUI\saveSettings(), 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 687 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 762 of file class.ilCronManager.php.
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilLPCronObjectStatistics\gatherTypesData(), ilLPCronObjectStatistics\gatherUserData(), ilForumCronNotification\keepAlive(), ilMailCronOrphanedMails\ping(), ilMembershipCronNotificationsData\ping(), ilLDAPCronSynchronization\run(), and ilMembershipCronNotifications\run().
Here is the caller graph for this function:
|
static |
Reset job.
| ilCronJob | $a_job |
Definition at line 592 of file class.ilCronManager.php.
References $DIC, $ilDB, $result, activateJob(), ilCronJobResult\CODE_MANUAL_RESET, 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:| ilCronManager::runActiveJobs | ( | ) |
Run all active jobs.
Implements ilCronManagerInterface.
Definition at line 36 of file class.ilCronManager.php.
References ilUtil\_getHttpPath(), ilSetting\_lookupValue(), ilDatePresentation\formatDate(), getJobInstanceById(), IL_CAL_UNIX, runJob(), settings(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
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 117 of file class.ilCronManager.php.
References $DIC, Vendor\Package\$e, $ilDB, $result, ilCronJobResult\CODE_NO_RESULT, ilCronJobResult\CODE_SUPPOSED_CRASH, deactivateJob(), getCronJobData(), 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 83 of file class.ilCronManager.php.
References $DIC, $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 350 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 445 of file class.ilCronManager.php.
References $DIC, $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 703 of file class.ilCronManager.php.
References $DIC, $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 730 of file class.ilCronManager.php.
References $DIC, $ilDB, ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by createDefaultEntry(), ilCronManagerTableGUI\populate(), and ilCronManagerGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 20 of file class.ilCronManager.php.
Referenced by __construct().
|
protected |
Definition at line 15 of file class.ilCronManager.php.
Referenced by __construct().