ILIAS
release_8 Revision v8.23
|
Public Member Functions | |
__construct () | |
getThisRunTS () | |
getLastRunTS () | |
getId () | |
getTitle () | |
getDescription () | |
hasAutoActivation () | |
hasFlexibleSchedule () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
run () | |
![]() | |
setDateTimeProvider (?Closure $date_time_provider) | |
isDue (?DateTimeImmutable $last_run, ?int $schedule_type, ?int $schedule_value, bool $is_manually_executed=false) | |
getScheduleType () | |
Get current schedule type (if flexible) More... | |
getScheduleValue () | |
Get current schedule value (if flexible) More... | |
setSchedule (?int $a_type, ?int $a_value) | |
Update current schedule (if flexible) More... | |
getAllScheduleTypes () | |
Get all available schedule types. More... | |
getScheduleTypesWithValues () | |
getValidScheduleTypes () | |
Returns a collection of all valid schedule types for a specific job. More... | |
isManuallyExecutable () | |
hasCustomSettings () | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active) | |
activationWasToggled (ilDBInterface $db, ilSetting $setting, bool $a_currently_active) | |
Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed. More... | |
getId () | |
getTitle () | |
getDescription () | |
hasAutoActivation () | |
Is to be activated on "installation", does only work for ILIAS core cron jobs. More... | |
hasFlexibleSchedule () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
run () | |
Data Fields | |
const | LAST_RUN_TS_SETTING_NAME = 'cron_xapi_res_eval_last_run' |
![]() | |
const | SCHEDULE_TYPE_DAILY = 1 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_IN_MINUTES = 2 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_IN_HOURS = 3 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_IN_DAYS = 4 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_WEEKLY = 5 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_MONTHLY = 6 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_QUARTERLY = 7 |
This will be replaced with an ENUM in ILIAS 9 More... | |
const | SCHEDULE_TYPE_YEARLY = 8 |
This will be replaced with an ENUM in ILIAS 9 More... | |
Protected Member Functions | |
initThisRunTS () | |
readLastRunTS () | |
writeThisAsLastRunTS () | |
getXapiStatementsReport (ilObject $object, ilCmiXapiStatementsReportFilter $filter) | |
buildReportFilter () | |
getObjectsToBeReported () | |
Protected Attributes | |
int | $thisRunTS |
int | $lastRunTS |
ilLogger | $log |
![]() | |
int | $schedule_type = null |
int | $schedule_value = null |
Closure | $date_time_provider = null |
Private Attributes | |
ILIAS DI Container | $dic |
Definition at line 30 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::__construct | ( | ) |
Definition at line 42 of file class.ilXapiResultsCronjob.php.
References $DIC, ilLoggerFactory\getLogger(), initThisRunTS(), and readLastRunTS().
|
protected |
Definition at line 179 of file class.ilXapiResultsCronjob.php.
References getLastRunTS(), getThisRunTS(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by run().
ilXapiResultsCronjob::getDefaultScheduleType | ( | ) |
Definition at line 108 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::getDefaultScheduleValue | ( | ) |
Definition at line 113 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::getDescription | ( | ) |
Definition at line 93 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::getId | ( | ) |
Definition at line 83 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::getLastRunTS | ( | ) |
Definition at line 78 of file class.ilXapiResultsCronjob.php.
References $lastRunTS.
Referenced by buildReportFilter().
|
protected |
Definition at line 201 of file class.ilXapiResultsCronjob.php.
References ilCmiXapiUser\getCmixObjectsHavingUsersMissingProxySuccess(), and ilObjCmiXapi\getObjectsHavingBypassProxyEnabledAndRegisteredUsers().
Referenced by run().
ilXapiResultsCronjob::getThisRunTS | ( | ) |
Definition at line 73 of file class.ilXapiResultsCronjob.php.
References $thisRunTS.
Referenced by buildReportFilter(), and run().
ilXapiResultsCronjob::getTitle | ( | ) |
Definition at line 88 of file class.ilXapiResultsCronjob.php.
|
protected |
Definition at line 159 of file class.ilXapiResultsCronjob.php.
References ilObject\getId(), and ilCmiXapiStatementsReportFilter\setActivityId().
Referenced by run().
ilXapiResultsCronjob::hasAutoActivation | ( | ) |
Definition at line 98 of file class.ilXapiResultsCronjob.php.
ilXapiResultsCronjob::hasFlexibleSchedule | ( | ) |
Definition at line 103 of file class.ilXapiResultsCronjob.php.
|
protected |
Definition at line 55 of file class.ilXapiResultsCronjob.php.
Referenced by __construct().
|
protected |
Definition at line 60 of file class.ilXapiResultsCronjob.php.
References ILIAS\LTI\ToolProvider\$settings, and ILIAS\Repository\int().
Referenced by __construct().
ilXapiResultsCronjob::run | ( | ) |
Definition at line 118 of file class.ilXapiResultsCronjob.php.
References $objId, buildReportFilter(), ilObjectFactory\getInstanceByObjId(), getObjectsToBeReported(), getThisRunTS(), getXapiStatementsReport(), IL_CAL_UNIX, ilObjCmiXapi\LAUNCH_MODE_NORMAL, ilCronJobResult\STATUS_OK, ilCmiXapiUser\updateFetchedUntilForObjects(), and writeThisAsLastRunTS().
|
protected |
Definition at line 67 of file class.ilXapiResultsCronjob.php.
References ILIAS\LTI\ToolProvider\$settings.
Referenced by run().
|
private |
Definition at line 40 of file class.ilXapiResultsCronjob.php.
|
protected |
Definition at line 36 of file class.ilXapiResultsCronjob.php.
Referenced by getLastRunTS().
|
protected |
Definition at line 38 of file class.ilXapiResultsCronjob.php.
|
protected |
Definition at line 34 of file class.ilXapiResultsCronjob.php.
Referenced by getThisRunTS().
const ilXapiResultsCronjob::LAST_RUN_TS_SETTING_NAME = 'cron_xapi_res_eval_last_run' |
Definition at line 32 of file class.ilXapiResultsCronjob.php.