ILIAS
release_8 Revision v8.23
|
Public Member Functions | |
__construct (ilDBInterface $db, ilSetting $setting, ilLogger $logger, ilComponentRepository $componentRepository, ilComponentFactory $componentFactory) | |
getJobInstanceById (string $id) | |
getJobInstance (string $a_id, string $a_component, string $a_class, bool $isCreationContext=false) | |
getCronJobData ($id=null, bool $withInactiveJobsIncluded=true) | |
Get cron job configuration/execution data. More... | |
registerJob (string $a_component, string $a_id, string $a_class, ?string $a_path) | |
unregisterJob (string $a_component, array $a_xml_job_ids) | |
createDefaultEntry (ilCronJob $job, string $component, string $class, ?string $path) | |
getPluginJobs (bool $withOnlyActive=false) | |
resetJob (ilCronJob $job) | |
updateJobResult (ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, ilCronJobResult $result, bool $wasManualExecution=false) | |
updateRunInformation (string $jobId, int $runningTimestamp, int $aliveTimestamp) | |
updateJobSchedule (ilCronJob $job, ?int $scheduleType, ?int $scheduleValue) | |
activateJob (ilCronJob $job, DateTimeImmutable $when, ?ilObjUser $actor=null, bool $wasManuallyExecuted=false) | |
deactivateJob (ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false) | |
findAll () | |
![]() | |
activateJob (ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false) | |
Private Attributes | |
const | TYPE_PLUGINS = 'Plugins' |
ilDBInterface | $db |
ilSetting | $setting |
ilLogger | $logger |
ilComponentRepository | $componentRepository |
ilComponentFactory | $componentFactory |
Definition at line 21 of file class.ilCronJobRepositoryImpl.php.
ilCronJobRepositoryImpl::__construct | ( | ilDBInterface | $db, |
ilSetting | $setting, | ||
ilLogger | $logger, | ||
ilComponentRepository | $componentRepository, | ||
ilComponentFactory | $componentFactory | ||
) |
Definition at line 31 of file class.ilCronJobRepositoryImpl.php.
References $componentFactory, $componentRepository, $db, $logger, $setting, and ILIAS\Repository\logger().
ilCronJobRepositoryImpl::activateJob | ( | ilCronJob | $job, |
DateTimeImmutable | $when, | ||
?ilObjUser | $actor = null , |
||
bool | $wasManuallyExecuted = false |
||
) |
Definition at line 358 of file class.ilCronJobRepositoryImpl.php.
References $query, and ilCronJob\getId().
Referenced by createDefaultEntry().
ilCronJobRepositoryImpl::createDefaultEntry | ( | ilCronJob | $job, |
string | $component, | ||
string | $class, | ||
?string | $path | ||
) |
Implements ilCronJobRepository.
Definition at line 201 of file class.ilCronJobRepositoryImpl.php.
References $query, $res, activateJob(), ilCronJob\activationWasToggled(), ilCronJob\getDefaultScheduleType(), ilCronJob\getDefaultScheduleValue(), ilCronJob\getId(), ilCronJob\hasAutoActivation(), ilCronJob\hasFlexibleSchedule(), ILIAS\Repository\logger(), and updateJobSchedule().
Referenced by getJobInstanceById(), getPluginJobs(), and registerJob().
ilCronJobRepositoryImpl::deactivateJob | ( | ilCronJob | $job, |
DateTimeImmutable | $when, | ||
ilObjUser | $actor, | ||
bool | $wasManuallyExecuted = false |
||
) |
Implements ilCronJobRepository.
Definition at line 378 of file class.ilCronJobRepositoryImpl.php.
References $query, ilObject\getId(), and ilCronJob\getId().
ilCronJobRepositoryImpl::findAll | ( | ) |
Implements ilCronJobRepository.
Definition at line 399 of file class.ilCronJobRepositoryImpl.php.
References getCronJobData(), getJobInstance(), and getPluginJobs().
ilCronJobRepositoryImpl::getCronJobData | ( | $id = null , |
|
bool | $withInactiveJobsIncluded = true |
||
) |
Get cron job configuration/execution data.
array | string | null | $id | |
bool | $withInactiveJobsIncluded |
Implements ilCronJobRepository.
Definition at line 123 of file class.ilCronJobRepositoryImpl.php.
References $id, $query, and $res.
Referenced by findAll(), getJobInstanceById(), and getPluginJobs().
ilCronJobRepositoryImpl::getJobInstance | ( | string | $a_id, |
string | $a_component, | ||
string | $a_class, | ||
bool | $isCreationContext = false |
||
) |
Implements ilCronJobRepository.
Definition at line 95 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId().
Referenced by findAll(), getJobInstanceById(), and registerJob().
ilCronJobRepositoryImpl::getJobInstanceById | ( | string | $id | ) |
Implements ilCronJobRepository.
Definition at line 45 of file class.ilCronJobRepositoryImpl.php.
References Vendor\Package\$e, $parts, XapiProxy\$plugin, createDefaultEntry(), getCronJobData(), getJobInstance(), and ILIAS\Repository\logger().
ilCronJobRepositoryImpl::getPluginJobs | ( | bool | $withOnlyActive = false | ) |
bool | $withOnlyActive |
Implements ilCronJobRepository.
Definition at line 271 of file class.ilCronJobRepositoryImpl.php.
References XapiProxy\$plugin, $res, createDefaultEntry(), and getCronJobData().
Referenced by findAll().
ilCronJobRepositoryImpl::registerJob | ( | string | $a_component, |
string | $a_id, | ||
string | $a_class, | ||
?string | $a_path | ||
) |
Implements ilCronJobRepository.
Definition at line 155 of file class.ilCronJobRepositoryImpl.php.
References createDefaultEntry(), and getJobInstance().
ilCronJobRepositoryImpl::resetJob | ( | ilCronJob | $job | ) |
Implements ilCronJobRepository.
Definition at line 306 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId().
ilCronJobRepositoryImpl::unregisterJob | ( | string | $a_component, |
array | $a_xml_job_ids | ||
) |
Implements ilCronJobRepository.
Definition at line 171 of file class.ilCronJobRepositoryImpl.php.
ilCronJobRepositoryImpl::updateJobResult | ( | ilCronJob | $job, |
DateTimeImmutable | $when, | ||
ilObjUser | $actor, | ||
ilCronJobResult | $result, | ||
bool | $wasManualExecution = false |
||
) |
Implements ilCronJobRepository.
Definition at line 315 of file class.ilCronJobRepositoryImpl.php.
References $query, ilCronJobResult\getCode(), ilCronJobResult\getDuration(), ilObject\getId(), ilCronJob\getId(), ilCronJobResult\getMessage(), and ilCronJobResult\getStatus().
ilCronJobRepositoryImpl::updateJobSchedule | ( | ilCronJob | $job, |
?int | $scheduleType, | ||
?int | $scheduleValue | ||
) |
Implements ilCronJobRepository.
Definition at line 344 of file class.ilCronJobRepositoryImpl.php.
References $query, ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by createDefaultEntry().
ilCronJobRepositoryImpl::updateRunInformation | ( | string | $jobId, |
int | $runningTimestamp, | ||
int | $aliveTimestamp | ||
) |
Implements ilCronJobRepository.
Definition at line 336 of file class.ilCronJobRepositoryImpl.php.
|
private |
Definition at line 29 of file class.ilCronJobRepositoryImpl.php.
Referenced by __construct().
|
private |
Definition at line 28 of file class.ilCronJobRepositoryImpl.php.
Referenced by __construct().
|
private |
Definition at line 25 of file class.ilCronJobRepositoryImpl.php.
Referenced by __construct().
|
private |
Definition at line 27 of file class.ilCronJobRepositoryImpl.php.
Referenced by __construct().
|
private |
Definition at line 26 of file class.ilCronJobRepositoryImpl.php.
Referenced by __construct().
|
private |
Definition at line 23 of file class.ilCronJobRepositoryImpl.php.