|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilTimingsCronReminder:
Collaboration diagram for ilTimingsCronReminder:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getId () | |
| getTitle () | |
| getDescription () | |
| getDefaultScheduleType () | |
| getDefaultScheduleValue () | |
| Get schedule value. More... | |
| hasAutoActivation () | |
| hasFlexibleSchedule () | |
| hasCustomSettings () | |
| run () | |
Public Member Functions inherited from ilCronJob | |
| isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false) | |
| Is job currently active? More... | |
| getScheduleType () | |
| Get current schedule type (if flexible) More... | |
| getScheduleValue () | |
| Get current schedule value (if flexible) More... | |
| setSchedule ($a_type, $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... | |
| getTitle () | |
| Get title. More... | |
| getDescription () | |
| Get description. More... | |
| isManuallyExecutable () | |
| Defines whether or not a cron job can be started manually. More... | |
| hasCustomSettings () | |
| Has cron job any custom setting which can be edited? More... | |
| addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
| Add custom settings to form. More... | |
| saveCustomSettings (ilPropertyFormGUI $a_form) | |
| Save custom settings. More... | |
| addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
| Add external settings to form. More... | |
| activationWasToggled ($a_currently_active) | |
| Cron job status was changed. More... | |
| getId () | |
| Get id. More... | |
| hasAutoActivation () | |
| Is to be activated on "installation". More... | |
| hasFlexibleSchedule () | |
| Can the schedule be configured? More... | |
| getDefaultScheduleType () | |
| Get schedule type. More... | |
| getDefaultScheduleValue () | |
| Get schedule value. More... | |
| run () | |
| Run job. More... | |
Protected Member Functions | |
| gatherUsers () | |
| Read all active users. More... | |
| gatherUsersWithExceededTimings () | |
| Users with exceeded timings. More... | |
| getNewExceededObjectForUser () | |
| get new exceeded objects for users More... | |
| getFreshlyStartedObjectsForUser () | |
| Get freshly started objects. More... | |
| buildExceededMails ($users_with_exceeded_objects) | |
| buildFreshlyStartedMails ($users_with_freshly_started_objects) | |
| buildTopMailBody ($user_id, $language_variable) | |
| fillObjectListForMailBody ($objects, $tpl) | |
| getUserLanguage ($user_id) | |
| buildMailSalutation ($user_id, $tpl) | |
| sendExceededMail ($user_id, $ref_ids, $mail_body) | |
| sendFreshlyStartedMail ($user_id, $ref_ids, $mail_body) | |
| markExceededInDatabase ($user_id, $ref_ids) | |
| markFreshlyStartedInDatabase ($user_id, $ref_ids) | |
| getAlreadySentNotifications ($user_id, $for_exceeded=true) | |
| getInformationForRefId ($ref_id) | |
| getExceededObjectsForUser ($user_id) | |
| getObjectsWithTimingsForUser ($user_id) | |
| hasUserActivatedNotification ($user_id) | |
Protected Member Functions inherited from ilCronJob | |
| checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Protected Attributes | |
| $log | |
| $lng | |
| $user_lang | |
| $db | |
| $obj_data_cache | |
| $users_with_exceeded_timings | |
| $users | |
| $now | |
Static Protected Attributes | |
| static | $objects_information |
| static | $coaches_emails |
Additional Inherited Members | |
Data Fields inherited from ilCronJob | |
| const | SCHEDULE_TYPE_DAILY = 1 |
| const | SCHEDULE_TYPE_IN_MINUTES = 2 |
| const | SCHEDULE_TYPE_IN_HOURS = 3 |
| const | SCHEDULE_TYPE_IN_DAYS = 4 |
| const | SCHEDULE_TYPE_WEEKLY = 5 |
| const | SCHEDULE_TYPE_MONTHLY = 6 |
| const | SCHEDULE_TYPE_QUARTERLY = 7 |
| const | SCHEDULE_TYPE_YEARLY = 8 |
Definition at line 4 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::__construct | ( | ) |
Constructor.
Definition at line 60 of file class.ilTimingsCronReminder.php.
|
protected |
| array | $users_with_exceeded_objects |
Definition at line 257 of file class.ilTimingsCronReminder.php.
References $tpl, buildTopMailBody(), fillObjectListForMailBody(), and sendExceededMail().
Referenced by getNewExceededObjectForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| array | $users_with_freshly_started_objects |
Definition at line 281 of file class.ilTimingsCronReminder.php.
References $tpl, buildTopMailBody(), fillObjectListForMailBody(), and sendFreshlyStartedMail().
Referenced by getFreshlyStartedObjectsForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $user_id | ||
| ilTemplate | $tpl |
Definition at line 358 of file class.ilTimingsCronReminder.php.
References $name, $tpl, and ilObjUser\_lookupName().
Referenced by buildTopMailBody().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $user_id | |
| $language_variable |
Definition at line 306 of file class.ilTimingsCronReminder.php.
References $tpl, 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 |
| $objects | |
| $tpl |
Definition at line 323 of file class.ilTimingsCronReminder.php.
References $tpl, and ilMail\_getInstallationSignature().
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 163 of file class.ilTimingsCronReminder.php.
Referenced by run().
Here is the caller graph for this function:
|
protected |
Users with exceeded timings.
Definition at line 183 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 |
| int | $user_id | |
| bool | true | $for_exceeded |
Definition at line 477 of file class.ilTimingsCronReminder.php.
References $result, 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 ilCronJob.
Definition at line 105 of file class.ilTimingsCronReminder.php.
References ilCronJob\SCHEDULE_TYPE_DAILY.
| ilTimingsCronReminder::getDefaultScheduleValue | ( | ) |
Get schedule value.
Reimplemented from ilCronJob.
Definition at line 110 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::getDescription | ( | ) |
Reimplemented from ilCronJob.
Definition at line 97 of file class.ilTimingsCronReminder.php.
|
protected |
| $user_id |
Definition at line 526 of file class.ilTimingsCronReminder.php.
References ilTimingsUser\lookupTimings().
Referenced by getNewExceededObjectForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get freshly started objects.
Definition at line 221 of file class.ilTimingsCronReminder.php.
References 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 ilCronJob.
Definition at line 81 of file class.ilTimingsCronReminder.php.
|
protected |
| $ref_id |
Definition at line 504 of file class.ilTimingsCronReminder.php.
References $type, and ilLink\_getLink().
Referenced by getFreshlyStartedObjectsForUser(), and getNewExceededObjectForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
get new exceeded objects for users
Definition at line 192 of file class.ilTimingsCronReminder.php.
References 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 |
| $user_id |
Definition at line 536 of file class.ilTimingsCronReminder.php.
References 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 ilCronJob.
Definition at line 89 of file class.ilTimingsCronReminder.php.
|
protected |
| $user_id |
Definition at line 345 of file class.ilTimingsCronReminder.php.
References ilLanguageFactory\_getLanguageOfUser().
Referenced by buildTopMailBody().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTimingsCronReminder::hasAutoActivation | ( | ) |
Reimplemented from ilCronJob.
Definition at line 118 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::hasCustomSettings | ( | ) |
Reimplemented from ilCronJob.
Definition at line 134 of file class.ilTimingsCronReminder.php.
| ilTimingsCronReminder::hasFlexibleSchedule | ( | ) |
Reimplemented from ilCronJob.
Definition at line 126 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 544 of file class.ilTimingsCronReminder.php.
Referenced by sendExceededMail(), and sendFreshlyStartedMail().
Here is the caller graph for this function:
|
protected |
| int | $user_id | |
| array | $ref_ids |
Definition at line 440 of file class.ilTimingsCronReminder.php.
References $data, and ilCourseConstants\CRON_TIMINGS_EXCEEDED_TABLE.
Referenced by sendExceededMail().
Here is the caller graph for this function:
|
protected |
| int | $user_id | |
| array | $ref_ids |
Definition at line 458 of file class.ilTimingsCronReminder.php.
References $data, and ilCourseConstants\CRON_TIMINGS_STARTED_TABLE.
Referenced by sendFreshlyStartedMail().
Here is the caller graph for this function:| ilTimingsCronReminder::run | ( | ) |
Reimplemented from ilCronJob.
Definition at line 142 of file class.ilTimingsCronReminder.php.
References $result, gatherUsers(), gatherUsersWithExceededTimings(), getFreshlyStartedObjectsForUser(), getNewExceededObjectForUser(), and ilCronJobResult\STATUS_OK.
Here is the call graph for this function:
|
protected |
| $user_id | |
| $ref_ids | |
| $mail_body |
Definition at line 383 of file class.ilTimingsCronReminder.php.
References $login, ilObjUser\_lookupLogin(), hasUserActivatedNotification(), and markExceededInDatabase().
Referenced by buildExceededMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $user_id | |
| $ref_ids | |
| $mail_body |
Definition at line 414 of file class.ilTimingsCronReminder.php.
References $login, ilObjUser\_lookupLogin(), hasUserActivatedNotification(), and markFreshlyStartedInDatabase().
Referenced by buildFreshlyStartedMails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 50 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 25 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 15 of file class.ilTimingsCronReminder.php.
Referenced by __construct().
|
protected |
Definition at line 10 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 55 of file class.ilTimingsCronReminder.php.
Referenced by gatherUsers().
|
protected |
Definition at line 30 of file class.ilTimingsCronReminder.php.
|
staticprotected |
Definition at line 45 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 20 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 40 of file class.ilTimingsCronReminder.php.
|
protected |
Definition at line 35 of file class.ilTimingsCronReminder.php.