|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ilTimingsCronReminder:
Collaboration diagram for ilTimingsCronReminder:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getId () | |
| getTitle () | |
| getDescription () | |
| getDefaultScheduleType () | |
| getDefaultScheduleValue () | |
| hasAutoActivation () | |
| Is to be activated on "installation", does only work for ILIAS core cron jobs. More... | |
| hasFlexibleSchedule () | |
| hasCustomSettings () | |
| run () | |
Public Member Functions inherited from ILIAS\Cron\CronJob | |
| setDateTimeProvider (?\Closure $date_time_provider) | |
| isDue (?\DateTimeImmutable $last_run, ?JobScheduleType $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 (?JobScheduleType $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 () | |
| usesLegacyForms () | |
| getCustomConfigurationInput (\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, \ilLanguage $lng) | |
| addCustomSettingsToForm (\ilPropertyFormGUI $a_form) | |
| saveCustomConfiguration (mixed $form_data) | |
| 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 () | |
Protected Member Functions | |
| gatherUsers () | |
| Read all active users. More... | |
| gatherUsersWithExceededTimings () | |
| getNewExceededObjectForUser () | |
| getFreshlyStartedObjectsForUser () | |
| buildExceededMails (array $users_with_exceeded_objects) | |
| buildFreshlyStartedMails (array $users_with_freshly_started_objects) | |
| buildTopMailBody (int $user_id, string $language_variable) | |
| fillObjectListForMailBody (array $objects, ilTemplate $tpl) | |
| getUserLanguage (int $user_id) | |
| buildMailSalutation (int $user_id, ilTemplate $tpl) | |
| sendExceededMail (int $user_id, array $ref_ids, string $mail_body) | |
| sendFreshlyStartedMail (int $user_id, array $ref_ids, string $mail_body) | |
| markExceededInDatabase (int $user_id, array $ref_ids) | |
| markFreshlyStartedInDatabase (int $user_id, array $ref_ids) | |
| getAlreadySentNotifications (int $user_id, bool $for_exceeded=true) | |
| getInformationForRefId (int $ref_id) | |
| getExceededObjectsForUser (int $user_id) | |
| getObjectsWithTimingsForUser (int $user_id) | |
| hasUserActivatedNotification (int $user_id) | |
Protected Attributes | |
| ilLogger | $log |
| ilLanguage | $lng |
| ilLanguage | $user_lang |
| ilDBInterface | $db |
| ilObjectDataCache | $obj_data_cache |
Protected Attributes inherited from ILIAS\Cron\CronJob | |
| JobScheduleType | $schedule_type = null |
| int | $schedule_value = null |
| Closure | $date_time_provider = null |
Private Attributes | |
| array | $users_with_exceeded_timings |
| array | $users |
| int | $now |
Static Private Attributes | |
| static array | $objects_information |
Definition at line 25 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::__construct | ( | ) |
Constructor.
Definition at line 42 of file class.ilTimingsCronReminder.php.
References $DIC, and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 201 of file class.ilTimingsCronReminder.php.
References $user_id, buildTopMailBody(), fillObjectListForMailBody(), and sendExceededMail().
Referenced by getNewExceededObjectForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 222 of file class.ilTimingsCronReminder.php.
References $user_id, buildTopMailBody(), fillObjectListForMailBody(), and sendFreshlyStartedMail().
Referenced by getFreshlyStartedObjectsForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 280 of file class.ilTimingsCronReminder.php.
References $user_id, ilObjUser\_lookupName(), and HTML_Template_IT\setVariable().
Referenced by buildTopMailBody().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 242 of file class.ilTimingsCronReminder.php.
References $user_id, buildMailSalutation(), and getUserLanguage().
Referenced by buildExceededMails(), and buildFreshlyStartedMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 254 of file class.ilTimingsCronReminder.php.
References ilMail\_getInstallationSignature(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by buildExceededMails(), and buildFreshlyStartedMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read all active users.
Definition at line 119 of file class.ilTimingsCronReminder.php.
References $now, and ILIAS\Repository\int().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 136 of file class.ilTimingsCronReminder.php.
References ilTimingsUser\lookupTimingsExceededByUser().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 375 of file class.ilTimingsCronReminder.php.
References $user_id, ilCourseConstants\CRON_TIMINGS_EXCEEDED_TABLE, and ilCourseConstants\CRON_TIMINGS_STARTED_TABLE.
Referenced by getFreshlyStartedObjectsForUser(), and getNewExceededObjectForUser().
Here is the caller graph for this function:| ilTimingsCronReminder::getDefaultScheduleType | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 73 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::getDefaultScheduleValue | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 78 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::getDescription | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 68 of file class.ilTimingsCronReminder.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 415 of file class.ilTimingsCronReminder.php.
References $user_id, and ilTimingsUser\lookupTimings().
Referenced by getNewExceededObjectForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 168 of file class.ilTimingsCronReminder.php.
References $ref_id, $user_id, buildFreshlyStartedMails(), getAlreadySentNotifications(), getInformationForRefId(), and getObjectsWithTimingsForUser().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTimingsCronReminder::getId | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 58 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 397 of file class.ilTimingsCronReminder.php.
References $ref_id.
Referenced by getFreshlyStartedObjectsForUser(), and getNewExceededObjectForUser().
Here is the caller graph for this function:
|
protected |
Definition at line 142 of file class.ilTimingsCronReminder.php.
References $ref_id, $user_id, buildExceededMails(), getAlreadySentNotifications(), getExceededObjectsForUser(), and getInformationForRefId().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 421 of file class.ilTimingsCronReminder.php.
References $user_id, and ilTimingsUser\lookupTimings().
Referenced by getFreshlyStartedObjectsForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTimingsCronReminder::getTitle | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 63 of file class.ilTimingsCronReminder.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 271 of file class.ilTimingsCronReminder.php.
References $user_id, and ilLanguageFactory\_getLanguageOfUser().
Referenced by buildTopMailBody().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTimingsCronReminder::hasAutoActivation | ( | ) |
Is to be activated on "installation", does only work for ILIAS core cron jobs.
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 83 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::hasCustomSettings | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 93 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::hasFlexibleSchedule | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 88 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 428 of file class.ilTimingsCronReminder.php.
Referenced by sendExceededMail(), and sendFreshlyStartedMail().
Here is the caller graph for this function:
|
protected |
Definition at line 347 of file class.ilTimingsCronReminder.php.
References $ref_id, $user_id, and ilCourseConstants\CRON_TIMINGS_EXCEEDED_TABLE.
Referenced by sendExceededMail().
Here is the caller graph for this function:
|
protected |
Definition at line 361 of file class.ilTimingsCronReminder.php.
References $ref_id, $user_id, and ilCourseConstants\CRON_TIMINGS_STARTED_TABLE.
Referenced by sendFreshlyStartedMail().
Here is the caller graph for this function:| ilTimingsCronReminder::run | ( | ) |
Reimplemented from ILIAS\Cron\CronJob.
Definition at line 98 of file class.ilTimingsCronReminder.php.
References gatherUsers(), gatherUsersWithExceededTimings(), getFreshlyStartedObjectsForUser(), and getNewExceededObjectForUser().
Here is the call graph for this function:
|
protected |
Definition at line 300 of file class.ilTimingsCronReminder.php.
References $user_id, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, hasUserActivatedNotification(), and markExceededInDatabase().
Referenced by buildExceededMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 325 of file class.ilTimingsCronReminder.php.
References $user_id, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, hasUserActivatedNotification(), and markFreshlyStartedInDatabase().
Referenced by buildFreshlyStartedMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 36 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 34 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 33 of file class.ilTimingsCronReminder.php.
|
private |
Definition at line 31 of file class.ilTimingsCronReminder.php.
Referenced by gatherUsers().
|
protected |
Definition at line 37 of file class.ilTimingsCronReminder.php.
|
staticprivate |
Definition at line 27 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 35 of file class.ilTimingsCronReminder.php.
|
private |
Definition at line 30 of file class.ilTimingsCronReminder.php.
|
private |
Definition at line 29 of file class.ilTimingsCronReminder.php.