|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Cron for booking manager notification. More...
Inheritance diagram for ilBookCronNotification:
Collaboration diagram for ilBookCronNotification:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getId () | |
| Get id. More... | |
| getTitle () | |
| Get title. More... | |
| getDescription () | |
| Get description. More... | |
| getDefaultScheduleType () | |
| Get schedule type. More... | |
| getDefaultScheduleValue () | |
| Get schedule value. More... | |
| hasAutoActivation () | |
| Is to be activated on "installation". More... | |
| hasFlexibleSchedule () | |
| Can the schedule be configured? More... | |
| run () | |
| Run job. More... | |
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 | |
| sendNotifications () | |
| Send notifications. More... | |
| sendMails ($notifications) | |
| Send mails. More... | |
| checkAccess ($perm, $uid, $obj_id) | |
| check access on obj id More... | |
| sendUserNotifications ($res) | |
| Send user notifications. More... | |
| sendAdminNotifications ($res) | |
| Send admin notifications. More... | |
Protected Member Functions inherited from ilCronJob | |
| checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Protected Attributes | |
| $lng | |
| $access | |
| $book_log | |
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 |
Cron for booking manager notification.
Definition at line 12 of file class.ilBookCronNotification.php.
| ilBookCronNotification::__construct | ( | ) |
Constructor.
Definition at line 32 of file class.ilBookCronNotification.php.
References $DIC, and ilLoggerFactory\getLogger().
Here is the call graph for this function:
|
protected |
check access on obj id
return
Definition at line 257 of file class.ilBookCronNotification.php.
References $access, and ilObject\_getAllReferences().
Referenced by sendNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookCronNotification::getDefaultScheduleType | ( | ) |
Get schedule type.
Reimplemented from ilCronJob.
Definition at line 65 of file class.ilBookCronNotification.php.
References ilCronJob\SCHEDULE_TYPE_DAILY.
| ilBookCronNotification::getDefaultScheduleValue | ( | ) |
Get schedule value.
Reimplemented from ilCronJob.
Definition at line 70 of file class.ilBookCronNotification.php.
| ilBookCronNotification::getDescription | ( | ) |
Get description.
Reimplemented from ilCronJob.
Definition at line 57 of file class.ilBookCronNotification.php.
References $lng.
| ilBookCronNotification::getId | ( | ) |
Get id.
Reimplemented from ilCronJob.
Definition at line 44 of file class.ilBookCronNotification.php.
| ilBookCronNotification::getTitle | ( | ) |
Get title.
Reimplemented from ilCronJob.
Definition at line 49 of file class.ilBookCronNotification.php.
References $lng.
| ilBookCronNotification::hasAutoActivation | ( | ) |
Is to be activated on "installation".
Reimplemented from ilCronJob.
Definition at line 75 of file class.ilBookCronNotification.php.
| ilBookCronNotification::hasFlexibleSchedule | ( | ) |
Can the schedule be configured?
Reimplemented from ilCronJob.
Definition at line 80 of file class.ilBookCronNotification.php.
| ilBookCronNotification::run | ( | ) |
Run job.
Reimplemented from ilCronJob.
Definition at line 85 of file class.ilBookCronNotification.php.
References $result, sendNotifications(), ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.
Here is the call graph for this function:
|
protected |
Send admin notifications.
Definition at line 299 of file class.ilBookCronNotification.php.
|
protected |
Send mails.
Definition at line 207 of file class.ilBookCronNotification.php.
References $lng, $n, $txt, ilObject\_lookupTitle(), ilDatePresentation\formatDate(), and IL_CAL_DATE.
Referenced by sendNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Send notifications.
return int
Definition at line 107 of file class.ilBookCronNotification.php.
References $book_log, Vendor\Package\$f, $log, $res, ilObject\_lookupTitle(), checkAccess(), ilNotification\getNotificationsForObject(), ilObjBookingPool\getPoolsWithReminders(), sendMails(), ilNotification\TYPE_BOOK, and ilObjBookingPool\writeLastReminderTimestamp().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Send user notifications.
Definition at line 274 of file class.ilBookCronNotification.php.
|
protected |
Definition at line 22 of file class.ilBookCronNotification.php.
Referenced by checkAccess().
|
protected |
Definition at line 27 of file class.ilBookCronNotification.php.
Referenced by sendNotifications().
|
protected |
Definition at line 17 of file class.ilBookCronNotification.php.
Referenced by getDescription(), getTitle(), and sendMails().