ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Cron management. More...
Public Member Functions | |
__construct (\ilSetting $settings, \ilLogger $logger) | |
ilCronManager constructor. 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().
|
static |
Activate cron job.
ilCronJob | $a_job | |
bool | $a_manual |
Definition at line 617 of file class.ilCronManager.php.
References $DIC, $ilDB, $user, ilCronJob\activationWasToggled(), and ilCronJob\getId().
Referenced by ilCronManagerGUI\confirmedActivate().
|
static |
Clear job data.
string | $a_component | |
array | $a_xml_job_ids |
Definition at line 466 of file class.ilCronManager.php.
References $DIC, $ilDB, $ilLog, and $row.
Referenced by ilObjDefReader\handlerEndTag().
|
static |
Definition at line 354 of file class.ilCronManager.php.
References $c, $DIC, $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 645 of file class.ilCronManager.php.
References $DIC, $ilDB, $ilUser, ilCronJob\activationWasToggled(), and ilCronJob\getId().
Referenced by ilCronManagerGUI\confirmedDeactivate().
|
static |
Get cron job configuration/execution data.
array | string | $a_id | |
array | $a_include_inactive |
Definition at line 548 of file class.ilCronManager.php.
References $DIC, $ilDB, $res, $row, and IL_COMP_PLUGIN.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), ilCronDeleteInactiveUserAccounts\calculateDeletionData(), ilCronManagerTableGUI\getItems(), getJobInstanceById(), getPluginJobs(), ilCronManagerGUI\initEditForm(), and ilLTICronOutcomeService\run().
|
static |
Get job instance (by job data)
string | $a_component | |
string | $a_class | |
string | $a_path |
Definition at line 304 of file class.ilCronManager.php.
References $_SERVER, $DIC, and $ilLog.
Referenced by ilCronManagerGUI\addToExternalSettingsForm(), and ilCronManagerTableGUI\getItems().
|
static |
Get job instance (by job id)
string | $a_job_id |
Definition at line 247 of file class.ilCronManager.php.
References $DIC, $ilLog, createDefaultEntry(), getCronJobData(), IL_COMP_PLUGIN, and IL_COMP_SERVICE.
Referenced by ilCronManagerGUI\getMultiActionData(), ilCronManagerGUI\initEditForm(), and ilCronManagerGUI\update().
|
staticprotected |
|
static |
Definition at line 508 of file class.ilCronManager.php.
References $DIC, $res, 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 670 of file class.ilCronManager.php.
Referenced by ilCronManagerGUI\confirmedDeactivate(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjContentObjectGUI\linkChecker(), ilObjForumAdministrationGUI\saveSettings(), and ilLPObjectStatisticsGUI\showCronJobInfo().
|
static |
Check if given job is currently inactive.
string | $a_job_id |
Definition at line 685 of file class.ilCronManager.php.
Referenced by ilCronManagerGUI\confirmedActivate().
|
static |
Keep cron job alive.
string | $a_job_id |
Definition at line 760 of file class.ilCronManager.php.
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilLPCronObjectStatistics\gatherTypesData(), ilLPCronObjectStatistics\gatherUserData(), ilCertificateCron\getDefaultScheduleValue(), ilForumCronNotification\keepAlive(), ilMembershipCronNotificationsData\ping(), ilMembershipCronNotifications\run(), and ilLDAPCronSynchronization\run().
|
static |
Reset job.
ilCronJob | $a_job |
Definition at line 590 of file class.ilCronManager.php.
References $DIC, $ilDB, $result, ilCronJobResult\CODE_MANUAL_RESET, ilCronJob\getId(), and ilCronJobResult\STATUS_RESET.
Referenced by ilCronManagerGUI\confirmedActivate(), and ilCronManagerGUI\confirmedReset().
ilCronManager::runActiveJobs | ( | ) |
Run all active jobs.
Implements ilCronManagerInterface.
Definition at line 36 of file class.ilCronManager.php.
References $row, ilUtil\_getHttpPath(), ilSetting\_lookupValue(), ilDatePresentation\formatDate(), IL_CAL_UNIX, settings(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
|
staticprotected |
Run single cron job (internal)
ilCronJob | $a_job | |
array | $a_job_data | |
bool | $a_manual |
Definition at line 116 of file class.ilCronManager.php.
References $DIC, $ilDB, $ilLog, $result, ilCronJobResult\CODE_NO_RESULT, ilCronJobResult\CODE_SUPPOSED_CRASH, ilCronJob\getId(), ilCronJob\isActive(), ilCronJob\run(), ilCronJobResult\STATUS_CRASHED, and ilCronJobResult\STATUS_INVALID_CONFIGURATION.
|
static |
Run single job manually.
string | $a_job_id |
Definition at line 82 of file class.ilCronManager.php.
References $DIC, $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 349 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 443 of file class.ilCronManager.php.
Referenced by ilObjDefReader\handlerBeginTag().
|
staticprotected |
Save job result.
ilCronJob | $a_job | |
ilCronJobResult | $a_result | |
bool | $a_manual |
Definition at line 701 of file class.ilCronManager.php.
References $DIC, $ilDB, $ilUser, ilCronJobResult\getCode(), ilCronJobResult\getDuration(), ilCronJob\getId(), ilCronJobResult\getMessage(), and ilCronJobResult\getStatus().
|
static |
Update job schedule.
ilCronJob | $a_job | |
int | $a_schedule_type | |
int | $a_schedule_value |
Definition at line 728 of file class.ilCronManager.php.
References $DIC, $ilDB, ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by ilCronManagerTableGUI\parseJobToData(), and ilCronManagerGUI\update().
|
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().