|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Forum notifications. More...
Inheritance diagram for ilForumCronNotification:
Collaboration diagram for ilForumCronNotification:Public Member Functions | |
| __construct (\ilDBInterface $database=null, \ilForumNotificationCache $notificationCache=null) | |
| 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... | |
| hasCustomSettings () | |
| keepAlive () | |
| run () | |
| sendCronForumNotification ($res, $notification_type) | |
| existsProviderObject ($post_id) | |
| addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
| activationWasToggled ($a_currently_active) | |
| addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
| saveCustomSettings (ilPropertyFormGUI $a_form) | |
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... | |
Data Fields | |
| const | KEEP_ALIVE_CHUNK_SIZE = 25 |
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 |
Static Public Attributes | |
| static | $providerObject = array() |
Protected Member Functions | |
| getRefIdsByObjId ($a_obj_id) | |
| getFirstAccessibleRefIdBUserAndObjId ($a_user_id, $a_obj_id) | |
Protected Member Functions inherited from ilCronJob | |
| checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Protected Attributes | |
| $settings | |
| $logger | |
| $tree | |
| $num_sent_messages = 0 | |
Static Protected Attributes | |
| static | $deleted_ids_cache = array() |
| static | $ref_ids_by_obj_id = array() |
| static | $accessible_ref_ids_by_user = array() |
Private Member Functions | |
| addProviderObject ($row) | |
| resetProviderCache () | |
| sendNotificationForNewPosts (string $threshold_date) | |
| sendNotificationForUpdatedPosts (string $threshold_date) | |
| sendNotificationForCensoredPosts (string $threshold_date) | |
| sendNotificationForUncensoredPosts (string $threshold_date) | |
| sendNotificationForDeletedThreads () | |
| sendNotifcationForDeletedPosts () | |
| sendNotification (\ilPDOStatement $res, string $actionName, int $notificationType) | |
| sendDeleteNotifcations (\ilPDOStatement $res, string $action, string $actionDescription, int $notificationType) | |
| createForumPostSql ($condition) | |
| createSelectOfDeletionNotificationsSql () | |
Private Attributes | |
| $ilDB | |
| $notificationCache | |
Static Private Attributes | |
| static | $container_by_frm_ref_id = [] |
Forum notifications.
Definition at line 10 of file class.ilForumCronNotification.php.
| ilForumCronNotification::__construct | ( | \ilDBInterface | $database = null, |
| \ilForumNotificationCache | $notificationCache = null |
||
| ) |
| ilDBInterface | null | $database | |
| ilForumNotificationCache | null | $notificationCache |
Definition at line 67 of file class.ilForumCronNotification.php.
References $DIC, $ilDB, $notificationCache, and settings().
Here is the call graph for this function:| ilForumCronNotification::activationWasToggled | ( | $a_currently_active | ) |
| bool | $a_currently_active |
Reimplemented from ilCronJob.
Definition at line 410 of file class.ilForumCronNotification.php.
References $DIC.
| ilForumCronNotification::addCustomSettingsToForm | ( | ilPropertyFormGUI | $a_form | ) |
| ilPropertyFormGUI | $a_form |
Reimplemented from ilCronJob.
Definition at line 425 of file class.ilForumCronNotification.php.
References $DIC, $lng, ilPropertyFormGUI\addItem(), and settings().
Here is the call graph for this function:
|
private |
| $row |
Definition at line 372 of file class.ilForumCronNotification.php.
Referenced by sendCronForumNotification().
Here is the caller graph for this function:| ilForumCronNotification::addToExternalSettingsForm | ( | $a_form_id, | |
| array & | $a_fields, | ||
| $a_is_active | |||
| ) |
| int | $a_form_id | |
| array | $a_fields | |
| bool | $a_is_active |
Reimplemented from ilCronJob.
Definition at line 393 of file class.ilForumCronNotification.php.
References $DIC, $lng, and ilAdministrationSettingsFormHandler\FORM_FORUM.
|
private |
| $condition |
Definition at line 627 of file class.ilForumCronNotification.php.
Referenced by sendNotificationForCensoredPosts(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), and sendNotificationForUpdatedPosts().
Here is the caller graph for this function:
|
private |
Definition at line 649 of file class.ilForumCronNotification.php.
Referenced by sendNotifcationForDeletedPosts(), and sendNotificationForDeletedThreads().
Here is the caller graph for this function:| ilForumCronNotification::existsProviderObject | ( | $post_id | ) |
| $post_id |
Definition at line 361 of file class.ilForumCronNotification.php.
Referenced by sendCronForumNotification().
Here is the caller graph for this function:| ilForumCronNotification::getDefaultScheduleType | ( | ) |
Get schedule type.
Reimplemented from ilCronJob.
Definition at line 102 of file class.ilForumCronNotification.php.
References ilCronJob\SCHEDULE_TYPE_IN_HOURS.
| ilForumCronNotification::getDefaultScheduleValue | ( | ) |
Get schedule value.
Reimplemented from ilCronJob.
Definition at line 107 of file class.ilForumCronNotification.php.
| ilForumCronNotification::getDescription | ( | ) |
|
protected |
| int | $a_user_id | |
| int | $a_obj_id |
Definition at line 223 of file class.ilForumCronNotification.php.
References $DIC, and getRefIdsByObjId().
Referenced by sendCronForumNotification().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumCronNotification::getId | ( | ) |
Get id.
Reimplemented from ilCronJob.
Definition at line 83 of file class.ilForumCronNotification.php.
Referenced by keepAlive().
Here is the caller graph for this function:
|
protected |
| int | $a_obj_id |
Definition at line 209 of file class.ilForumCronNotification.php.
References ilObject\_getAllReferences().
Referenced by getFirstAccessibleRefIdBUserAndObjId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumCronNotification::getTitle | ( | ) |
| ilForumCronNotification::hasAutoActivation | ( | ) |
Is to be activated on "installation".
Reimplemented from ilCronJob.
Definition at line 112 of file class.ilForumCronNotification.php.
| ilForumCronNotification::hasCustomSettings | ( | ) |
Reimplemented from ilCronJob.
Definition at line 125 of file class.ilForumCronNotification.php.
| ilForumCronNotification::hasFlexibleSchedule | ( | ) |
Can the schedule be configured?
Reimplemented from ilCronJob.
Definition at line 117 of file class.ilForumCronNotification.php.
| ilForumCronNotification::keepAlive | ( | ) |
Definition at line 133 of file class.ilForumCronNotification.php.
References getId(), and ilCronManager\ping().
Referenced by sendCronForumNotification(), sendDeleteNotifcations(), and sendNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 383 of file class.ilForumCronNotification.php.
Referenced by sendCronForumNotification().
Here is the caller graph for this function:| ilForumCronNotification::run | ( | ) |
Reimplemented from ilCronJob.
Definition at line 143 of file class.ilForumCronNotification.php.
References $DIC, $ilSetting, $lng, $result, sendNotifcationForDeletedPosts(), sendNotificationForCensoredPosts(), sendNotificationForDeletedThreads(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), sendNotificationForUpdatedPosts(), settings(), ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.
Here is the call graph for this function:| ilForumCronNotification::saveCustomSettings | ( | ilPropertyFormGUI | $a_form | ) |
| ilPropertyFormGUI | $a_form |
Reimplemented from ilCronJob.
Definition at line 448 of file class.ilForumCronNotification.php.
References ilPropertyFormGUI\getInput(), and settings().
Here is the call graph for this function:| ilForumCronNotification::sendCronForumNotification | ( | $res, | |
| $notification_type | |||
| ) |
| $res | |
| $notification_type |
Definition at line 250 of file class.ilForumCronNotification.php.
References $container, $DIC, $i, $ilDB, $res, addProviderObject(), existsProviderObject(), getFirstAccessibleRefIdBUserAndObjId(), keepAlive(), ilForumAuthorInformationCache\preloadUserObjects(), resetProviderCache(), ilForumMailNotification\TYPE_POST_DELETED, and ilForumMailNotification\TYPE_THREAD_DELETED.
Referenced by sendDeleteNotifcations(), and sendNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $res | |
| $action | |
| $actionDescription | |
| $notificationType |
Definition at line 607 of file class.ilForumCronNotification.php.
References $res, keepAlive(), and sendCronForumNotification().
Referenced by sendNotifcationForDeletedPosts(), and sendNotificationForDeletedThreads().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 568 of file class.ilForumCronNotification.php.
References $res, createSelectOfDeletionNotificationsSql(), sendDeleteNotifcations(), and ilForumMailNotification\TYPE_POST_DELETED.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $res | |
| $actionName | |
| $notificationType |
Definition at line 589 of file class.ilForumCronNotification.php.
References $res, keepAlive(), and sendCronForumNotification().
Referenced by sendNotificationForCensoredPosts(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), and sendNotificationForUpdatedPosts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $threshold_date |
Definition at line 507 of file class.ilForumCronNotification.php.
References $res, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_CENSORED.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 552 of file class.ilForumCronNotification.php.
References $res, createSelectOfDeletionNotificationsSql(), sendDeleteNotifcations(), and ilForumMailNotification\TYPE_THREAD_DELETED.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $threshold_date |
Definition at line 457 of file class.ilForumCronNotification.php.
References $res, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_NEW.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $threshold_date |
Definition at line 531 of file class.ilForumCronNotification.php.
References $res, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_UNCENSORED.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $threshold_date |
Definition at line 483 of file class.ilForumCronNotification.php.
References $res, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_UPDATED.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 47 of file class.ilForumCronNotification.php.
|
staticprivate |
Definition at line 50 of file class.ilForumCronNotification.php.
|
staticprotected |
Definition at line 37 of file class.ilForumCronNotification.php.
|
private |
Definition at line 58 of file class.ilForumCronNotification.php.
Referenced by __construct(), and sendCronForumNotification().
|
protected |
Definition at line 22 of file class.ilForumCronNotification.php.
|
private |
Definition at line 61 of file class.ilForumCronNotification.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file class.ilForumCronNotification.php.
|
static |
Definition at line 32 of file class.ilForumCronNotification.php.
|
staticprotected |
Definition at line 42 of file class.ilForumCronNotification.php.
|
protected |
Definition at line 17 of file class.ilForumCronNotification.php.
|
protected |
Definition at line 27 of file class.ilForumCronNotification.php.
| const ilForumCronNotification::KEEP_ALIVE_CHUNK_SIZE = 25 |
Definition at line 12 of file class.ilForumCronNotification.php.