ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilCronJobRepository $cronRepository, ilDBInterface $db, ilSetting $settings, ilLogger $logger, ClockFactory $clock_factory) | |
runActiveJobs (ilObjUser $actor) | |
runJobManual (string $jobId, ilObjUser $actor) | |
resetJob (ilCronJob $job, ilObjUser $actor) | |
activateJob (ilCronJob $job, ilObjUser $actor, bool $wasManuallyExecuted=false) | |
deactivateJob (ilCronJob $job, ilObjUser $actor, bool $wasManuallyExecuted=false) | |
isJobActive (string $jobId) | |
isJobInactive (string $jobId) | |
ping (string $jobId) | |
Private Member Functions | |
getMicrotime () | |
runJob (ilCronJob $job, ilObjUser $actor, ?array $jobData=null, bool $isManualExecution=false) | |
Run single cron job (internal) More... | |
Private Attributes | |
ilCronJobRepository | $cronRepository |
ilDBInterface | $db |
ilSetting | $settings |
ilLogger | $logger |
ClockFactory | $clock_factory |
Definition at line 23 of file class.ilCronManagerImpl.php.
ilCronManagerImpl::__construct | ( | ilCronJobRepository | $cronRepository, |
ilDBInterface | $db, | ||
ilSetting | $settings, | ||
ilLogger | $logger, | ||
ClockFactory | $clock_factory | ||
) |
Definition at line 31 of file class.ilCronManagerImpl.php.
References $clock_factory, $cronRepository, $db, $logger, $settings, ILIAS\Repository\logger(), and ILIAS\Repository\settings().
ilCronManagerImpl::activateJob | ( | ilCronJob | $job, |
ilObjUser | $actor, | ||
bool | $wasManuallyExecuted = false |
||
) |
Implements ilCronManager.
Definition at line 244 of file class.ilCronManagerImpl.php.
References ilCronJob\activationWasToggled(), and ILIAS\Repository\settings().
Referenced by resetJob().
ilCronManagerImpl::deactivateJob | ( | ilCronJob | $job, |
ilObjUser | $actor, | ||
bool | $wasManuallyExecuted = false |
||
) |
Implements ilCronManager.
Definition at line 250 of file class.ilCronManagerImpl.php.
References ilCronJob\activationWasToggled(), and ILIAS\Repository\settings().
Referenced by runJob().
|
private |
Definition at line 45 of file class.ilCronManagerImpl.php.
Referenced by runJob().
ilCronManagerImpl::isJobActive | ( | string | $jobId | ) |
Implements ilCronManager.
Definition at line 256 of file class.ilCronManagerImpl.php.
ilCronManagerImpl::isJobInactive | ( | string | $jobId | ) |
Implements ilCronManager.
Definition at line 263 of file class.ilCronManagerImpl.php.
ilCronManagerImpl::ping | ( | string | $jobId | ) |
Implements ilCronManager.
Definition at line 270 of file class.ilCronManagerImpl.php.
Implements ilCronManager.
Definition at line 225 of file class.ilCronManagerImpl.php.
References activateJob(), ilCronJobResult\CODE_MANUAL_RESET, and ilCronJobResult\STATUS_RESET.
ilCronManagerImpl::runActiveJobs | ( | ilObjUser | $actor | ) |
Implements ilCronManager.
Definition at line 50 of file class.ilCronManagerImpl.php.
References ilUtil\_getHttpPath(), ilSetting\_lookupValue(), ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\logger(), runJob(), ILIAS\Repository\settings(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
|
private |
Run single cron job (internal)
Definition at line 125 of file class.ilCronManagerImpl.php.
References Vendor\Package\$e, ilCronJobResult\CODE_SUPPOSED_CRASH, deactivateJob(), ilCronJob\getId(), getMicrotime(), ILIAS\Repository\int(), ilCronJob\isDue(), ILIAS\Repository\logger(), ilCronJob\run(), ilCronJob\setDateTimeProvider(), ilCronJobResult\STATUS_CRASHED, ilCronJobResult\STATUS_INVALID_CONFIGURATION, and ilStr\subStr().
Referenced by runActiveJobs(), and runJobManual().
ilCronManagerImpl::runJobManual | ( | string | $jobId, |
ilObjUser | $actor | ||
) |
Implements ilCronManager.
Definition at line 94 of file class.ilCronManagerImpl.php.
References ILIAS\Repository\logger(), and runJob().
|
private |
Definition at line 29 of file class.ilCronManagerImpl.php.
Referenced by __construct().
|
private |
Definition at line 25 of file class.ilCronManagerImpl.php.
Referenced by __construct().
|
private |
Definition at line 26 of file class.ilCronManagerImpl.php.
Referenced by __construct().
|
private |
Definition at line 28 of file class.ilCronManagerImpl.php.
Referenced by __construct().
|
private |
Definition at line 27 of file class.ilCronManagerImpl.php.
Referenced by __construct().