|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilCronJobRepositoryImpl:
Collaboration diagram for ilCronJobRepositoryImpl:Public Member Functions | |
| __construct (private readonly ilDBInterface $db, private readonly ilSetting $setting, private readonly ilLogger $logger, private readonly ilComponentRepository $componentRepository, private readonly 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, ?CronJobScheduleType $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 () | |
Public Member Functions inherited from ilCronJobRepository | |
| activateJob (ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false) | |
Private Attributes | |
| const | TYPE_PLUGINS = 'Plugins' |
Definition at line 23 of file class.ilCronJobRepositoryImpl.php.
| ilCronJobRepositoryImpl::__construct | ( | private readonly ilDBInterface | $db, |
| private readonly ilSetting | $setting, | ||
| private readonly ilLogger | $logger, | ||
| private readonly ilComponentRepository | $componentRepository, | ||
| private readonly ilComponentFactory | $componentFactory | ||
| ) |
Definition at line 27 of file class.ilCronJobRepositoryImpl.php.
| ilCronJobRepositoryImpl::activateJob | ( | ilCronJob | $job, |
| DateTimeImmutable | $when, | ||
| ?ilObjUser | $actor = null, |
||
| bool | $wasManuallyExecuted = false |
||
| ) |
Definition at line 349 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId().
Referenced by createDefaultEntry().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJobRepositoryImpl::createDefaultEntry | ( | ilCronJob | $job, |
| string | $component, | ||
| string | $class, | ||
| ?string | $path | ||
| ) |
Implements ilCronJobRepository.
Definition at line 188 of file class.ilCronJobRepositoryImpl.php.
References $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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJobRepositoryImpl::deactivateJob | ( | ilCronJob | $job, |
| DateTimeImmutable | $when, | ||
| ilObjUser | $actor, | ||
| bool | $wasManuallyExecuted = false |
||
| ) |
Implements ilCronJobRepository.
Definition at line 369 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId(), and ilObject\getId().
Here is the call graph for this function:| ilCronJobRepositoryImpl::findAll | ( | ) |
Implements ilCronJobRepository.
Definition at line 390 of file class.ilCronJobRepositoryImpl.php.
References getCronJobData(), getJobInstance(), and getPluginJobs().
Here is the call graph for this function:| ilCronJobRepositoryImpl::getCronJobData | ( | $id = null, |
|
| bool | $withInactiveJobsIncluded = true |
||
| ) |
Get cron job configuration/execution data.
| list<string>|string|null | $id |
Implements ilCronJobRepository.
Definition at line 108 of file class.ilCronJobRepositoryImpl.php.
References $id, $res, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by findAll(), getJobInstanceById(), and getPluginJobs().
Here is the caller graph for this function:| ilCronJobRepositoryImpl::getJobInstance | ( | string | $a_id, |
| string | $a_component, | ||
| string | $a_class, | ||
| bool | $isCreationContext = false |
||
| ) |
Implements ilCronJobRepository.
Definition at line 86 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId().
Referenced by findAll(), getJobInstanceById(), and registerJob().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJobRepositoryImpl::getJobInstanceById | ( | string | $id | ) |
Implements ilCronJobRepository.
Definition at line 36 of file class.ilCronJobRepositoryImpl.php.
References $parts, XapiProxy\$plugin, createDefaultEntry(), getCronJobData(), getJobInstance(), and ILIAS\Repository\logger().
Here is the call graph for this function:| ilCronJobRepositoryImpl::getPluginJobs | ( | bool | $withOnlyActive = false | ) |
Implements ilCronJobRepository.
Definition at line 258 of file class.ilCronJobRepositoryImpl.php.
References XapiProxy\$plugin, $res, createDefaultEntry(), and getCronJobData().
Referenced by findAll().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJobRepositoryImpl::registerJob | ( | string | $a_component, |
| string | $a_id, | ||
| string | $a_class, | ||
| ?string | $a_path | ||
| ) |
Implements ilCronJobRepository.
Definition at line 140 of file class.ilCronJobRepositoryImpl.php.
References createDefaultEntry(), and getJobInstance().
Here is the call graph for this function:| ilCronJobRepositoryImpl::resetJob | ( | ilCronJob | $job | ) |
Implements ilCronJobRepository.
Definition at line 293 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId().
Here is the call graph for this function:| ilCronJobRepositoryImpl::unregisterJob | ( | string | $a_component, |
| array | $a_xml_job_ids | ||
| ) |
Implements ilCronJobRepository.
Definition at line 156 of file class.ilCronJobRepositoryImpl.php.
References $res.
| ilCronJobRepositoryImpl::updateJobResult | ( | ilCronJob | $job, |
| DateTimeImmutable | $when, | ||
| ilObjUser | $actor, | ||
| ilCronJobResult | $result, | ||
| bool | $wasManualExecution = false |
||
| ) |
Implements ilCronJobRepository.
Definition at line 304 of file class.ilCronJobRepositoryImpl.php.
References $user_id, ilCronJobResult\getCode(), ilCronJobResult\getDuration(), ilCronJob\getId(), ilObject\getId(), ilCronJobResult\getMessage(), and ilCronJobResult\getStatus().
Here is the call graph for this function:| ilCronJobRepositoryImpl::updateJobSchedule | ( | ilCronJob | $job, |
| ?CronJobScheduleType | $scheduleType, | ||
| ?int | $scheduleValue | ||
| ) |
Implements ilCronJobRepository.
Definition at line 335 of file class.ilCronJobRepositoryImpl.php.
References ilCronJob\getId(), ilCronJob\getValidScheduleTypes(), and ilCronJob\hasFlexibleSchedule().
Referenced by createDefaultEntry().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCronJobRepositoryImpl::updateRunInformation | ( | string | $jobId, |
| int | $runningTimestamp, | ||
| int | $aliveTimestamp | ||
| ) |
Implements ilCronJobRepository.
Definition at line 325 of file class.ilCronJobRepositoryImpl.php.
|
private |
Definition at line 25 of file class.ilCronJobRepositoryImpl.php.