|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilForumNotification. More...
Collaboration diagram for ilForumNotification:Public Member Functions | |
| __construct (private int $ref_id) | |
| setNotificationId (int $a_notification_id) | |
| getNotificationId () | |
| setUserId (?int $a_user_id) | |
| getUserId () | |
| setForumId (int $a_forum_id) | |
| getForumId () | |
| setThreadId (int $a_thread_id) | |
| getThreadId () | |
| setInterestedEvents (int $interested_events) | |
| getInterestedEvents () | |
| setAdminForce (bool $a_admin_force) | |
| getAdminForce () | |
| setUserToggle (bool $a_user_toggle) | |
| getUserToggle () | |
| setForumRefId (int $a_ref_id) | |
| getForumRefId () | |
| setUserIdNoti (int $a_user_id_noti) | |
| getUserIdNoti () | |
| isAdminForceNotification () | |
| isUserToggleNotification () | |
| insertAdminForce () | |
| deleteAdminForce () | |
| deleteUserToggle () | |
| updateUserToggle () | |
| update () | |
| deleteNotificationAllUsers () | |
| read () | |
| existsNotification () | |
| cloneFromSource (int $sourceRefId) | |
| updateInterestedEvents () | |
| readInterestedEvents () | |
| readAllForcedEvents () | |
| getForcedEventsObjectByUserId (int $user_id) | |
| updateUserNotifications (array $usr_ids, ilForumProperties $object_properties) | |
Static Public Member Functions | |
| static | checkForumsExistsInsert (int $ref_id, int $user_id) |
| static | checkForumsExistsDelete (int $ref_id, int $user_id) |
| static | getCachedNodeData (int $ref_id) |
| static | mergeThreadNotifications ($merge_source_thread_id, $merge_target_thread_id) |
Private Member Functions | |
| createMissingNotification (int $user_id) | |
Private Attributes | |
| ilDBInterface | $db |
| ilObjUser | $user |
| int | $notification_id |
| int | $user_id = null |
| int | $forum_id |
| int | $thread_id |
| bool | $admin_force = false |
| bool | $user_toggle = false |
| int | $interested_events = 0 |
| int | $user_id_noti |
Static Private Attributes | |
| static array | $node_data_cache = [] |
| static array | $forced_events_cache = [] |
Class ilForumNotification.
Definition at line 29 of file class.ilForumNotification.php.
| ilForumNotification::__construct | ( | private int | $ref_id | ) |
Definition at line 47 of file class.ilForumNotification.php.
References $DIC, and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Definition at line 284 of file class.ilForumNotification.php.
Referenced by ilMembershipBlockGUI\confirmedRemove(), and ilDashboardLearningSequenceGUI\confirmedRemove().
Here is the caller graph for this function:
|
static |
Definition at line 249 of file class.ilForumNotification.php.
References $data, $DIC, ilForumProperties\_isAdminForceNoti(), and ilForumProperties\_isUserToggleNoti().
Referenced by ilCourseRegistrationGUI\add(), ilGroupRegistrationGUI\add(), ilObjCourse\register(), and ilForumNotificationTest\testCheckForumsExistsInsert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::cloneFromSource | ( | int | $sourceRefId | ) |
Definition at line 461 of file class.ilForumNotification.php.
References insertAdminForce(), setAdminForce(), setInterestedEvents(), setUserId(), setUserIdNoti(), and setUserToggle().
Here is the call graph for this function:
|
private |
Definition at line 543 of file class.ilForumNotification.php.
References $ref_id.
Referenced by getForcedEventsObjectByUserId().
Here is the caller graph for this function:| ilForumNotification::deleteAdminForce | ( | ) |
Definition at line 207 of file class.ilForumNotification.php.
References getForumId(), and getUserId().
Here is the call graph for this function:| ilForumNotification::deleteNotificationAllUsers | ( | ) |
Definition at line 379 of file class.ilForumNotification.php.
References getForumId().
Here is the call graph for this function:| ilForumNotification::deleteUserToggle | ( | ) |
Definition at line 221 of file class.ilForumNotification.php.
References getForumId(), and getUserId().
Here is the call graph for this function:| ilForumNotification::existsNotification | ( | ) |
Definition at line 450 of file class.ilForumNotification.php.
References $res, getAdminForce(), getForumId(), and getUserId().
Referenced by updateUserNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::getAdminForce | ( | ) |
Definition at line 111 of file class.ilForumNotification.php.
References $admin_force.
Referenced by existsNotification(), insertAdminForce(), and update().
Here is the caller graph for this function:
|
static |
Definition at line 310 of file class.ilForumNotification.php.
References $DIC, $ilDB, $ref_id, ilObjectFactory\getInstanceByRefId(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilForumNotification::getForcedEventsObjectByUserId | ( | int | $user_id | ) |
Definition at line 530 of file class.ilForumNotification.php.
References $user_id, createMissingNotification(), and readAllForcedEvents().
Here is the call graph for this function:| ilForumNotification::getForumId | ( | ) |
Definition at line 81 of file class.ilForumNotification.php.
References $forum_id.
Referenced by deleteAdminForce(), deleteNotificationAllUsers(), deleteUserToggle(), existsNotification(), insertAdminForce(), isAdminForceNotification(), isUserToggleNotification(), read(), readInterestedEvents(), update(), updateInterestedEvents(), and updateUserToggle().
Here is the caller graph for this function:| ilForumNotification::getForumRefId | ( | ) |
Definition at line 131 of file class.ilForumNotification.php.
References $ref_id.
| ilForumNotification::getInterestedEvents | ( | ) |
Definition at line 101 of file class.ilForumNotification.php.
References $interested_events.
Referenced by update(), and updateInterestedEvents().
Here is the caller graph for this function:| ilForumNotification::getNotificationId | ( | ) |
Definition at line 61 of file class.ilForumNotification.php.
References $notification_id.
| ilForumNotification::getThreadId | ( | ) |
| ilForumNotification::getUserId | ( | ) |
Definition at line 71 of file class.ilForumNotification.php.
References $user_id.
Referenced by deleteAdminForce(), deleteUserToggle(), existsNotification(), insertAdminForce(), isAdminForceNotification(), isUserToggleNotification(), readInterestedEvents(), update(), updateInterestedEvents(), and updateUserToggle().
Here is the caller graph for this function:| ilForumNotification::getUserIdNoti | ( | ) |
| ilForumNotification::getUserToggle | ( | ) |
Definition at line 121 of file class.ilForumNotification.php.
References $user_toggle.
Referenced by insertAdminForce(), update(), and updateUserToggle().
Here is the caller graph for this function:| ilForumNotification::insertAdminForce | ( | ) |
Definition at line 185 of file class.ilForumNotification.php.
References getAdminForce(), getForumId(), getUserId(), getUserToggle(), setNotificationId(), and ILIAS\Repository\user().
Referenced by cloneFromSource(), and updateUserNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::isAdminForceNotification | ( | ) |
Definition at line 148 of file class.ilForumNotification.php.
References $res, getForumId(), and getUserId().
Here is the call graph for this function:| ilForumNotification::isUserToggleNotification | ( | ) |
Definition at line 167 of file class.ilForumNotification.php.
References $res, getForumId(), and getUserId().
Here is the call graph for this function:
|
static |
Definition at line 410 of file class.ilForumNotification.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilForum\mergeThreads(), and ilForumNotificationTest\testMergeThreadNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::read | ( | ) |
Definition at line 391 of file class.ilForumNotification.php.
References $res, getForumId(), and ILIAS\Repository\int().
Referenced by updateUserNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::readAllForcedEvents | ( | ) |
Definition at line 507 of file class.ilForumNotification.php.
References $ref_id, $res, and ILIAS\Repository\int().
Referenced by getForcedEventsObjectByUserId(), and ilForumSettingsGUI\initForcedForumNotification().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::readInterestedEvents | ( | ) |
Definition at line 486 of file class.ilForumNotification.php.
References $interested_events, $res, ilForumNotificationEvents\DEACTIVATED, getForumId(), getUserId(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilForumNotification::setAdminForce | ( | bool | $a_admin_force | ) |
Definition at line 106 of file class.ilForumNotification.php.
Referenced by cloneFromSource(), ilForumSettingsGUI\showMembers(), and updateUserNotifications().
Here is the caller graph for this function:| ilForumNotification::setForumId | ( | int | $a_forum_id | ) |
Definition at line 76 of file class.ilForumNotification.php.
| ilForumNotification::setForumRefId | ( | int | $a_ref_id | ) |
Definition at line 126 of file class.ilForumNotification.php.
| ilForumNotification::setInterestedEvents | ( | int | $interested_events | ) |
Definition at line 96 of file class.ilForumNotification.php.
References $interested_events.
Referenced by cloneFromSource(), and updateUserNotifications().
Here is the caller graph for this function:| ilForumNotification::setNotificationId | ( | int | $a_notification_id | ) |
Definition at line 56 of file class.ilForumNotification.php.
Referenced by insertAdminForce().
Here is the caller graph for this function:| ilForumNotification::setThreadId | ( | int | $a_thread_id | ) |
Definition at line 86 of file class.ilForumNotification.php.
| ilForumNotification::setUserId | ( | ?int | $a_user_id | ) |
Definition at line 66 of file class.ilForumNotification.php.
Referenced by ilForumModeratorsGUI\addModerator(), cloneFromSource(), ilForumSettingsGUI\disableAdminForceNoti(), ilForumSettingsGUI\disableHideUserToggleNoti(), ilForumSettingsGUI\enableAdminForceNoti(), ilForumSettingsGUI\enableHideUserToggleNoti(), ilForumSettingsGUI\saveEventsForUser(), ilObjForumGUI\saveUserNotificationSettingsObject(), and updateUserNotifications().
Here is the caller graph for this function:| ilForumNotification::setUserIdNoti | ( | int | $a_user_id_noti | ) |
Definition at line 137 of file class.ilForumNotification.php.
Referenced by cloneFromSource().
Here is the caller graph for this function:| ilForumNotification::setUserToggle | ( | bool | $a_user_toggle | ) |
Definition at line 116 of file class.ilForumNotification.php.
Referenced by cloneFromSource(), and updateUserNotifications().
Here is the caller graph for this function:| ilForumNotification::update | ( | ) |
Definition at line 363 of file class.ilForumNotification.php.
References getAdminForce(), getForumId(), getInterestedEvents(), getUserId(), and getUserToggle().
Referenced by updateUserNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumNotification::updateInterestedEvents | ( | ) |
Definition at line 477 of file class.ilForumNotification.php.
References getForumId(), getInterestedEvents(), and getUserId().
Here is the call graph for this function:| ilForumNotification::updateUserNotifications | ( | array | $usr_ids, |
| ilForumProperties | $object_properties | ||
| ) |
| list<int> | $usr_ids |
Definition at line 556 of file class.ilForumNotification.php.
References existsNotification(), ilForumProperties\getInterestedEvents(), ilForumProperties\getNotificationType(), insertAdminForce(), ilForumProperties\isUserToggleNoti(), read(), setAdminForce(), setInterestedEvents(), setUserId(), setUserToggle(), and update().
Here is the call graph for this function:| ilForumNotification::updateUserToggle | ( | ) |
Definition at line 236 of file class.ilForumNotification.php.
References getForumId(), getUserId(), and getUserToggle().
Here is the call graph for this function:
|
private |
Definition at line 42 of file class.ilForumNotification.php.
Referenced by getAdminForce().
|
private |
Definition at line 36 of file class.ilForumNotification.php.
|
staticprivate |
Definition at line 34 of file class.ilForumNotification.php.
|
private |
Definition at line 40 of file class.ilForumNotification.php.
Referenced by getForumId().
|
private |
Definition at line 44 of file class.ilForumNotification.php.
Referenced by getInterestedEvents(), readInterestedEvents(), and setInterestedEvents().
|
staticprivate |
Definition at line 32 of file class.ilForumNotification.php.
|
private |
Definition at line 38 of file class.ilForumNotification.php.
Referenced by getNotificationId().
|
private |
Definition at line 41 of file class.ilForumNotification.php.
Referenced by getThreadId().
|
private |
Definition at line 37 of file class.ilForumNotification.php.
|
private |
Definition at line 39 of file class.ilForumNotification.php.
Referenced by getForcedEventsObjectByUserId(), and getUserId().
|
private |
Definition at line 45 of file class.ilForumNotification.php.
Referenced by getUserIdNoti().
|
private |
Definition at line 43 of file class.ilForumNotification.php.
Referenced by getUserToggle().