ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | hasNotification (int $type, int $user_id, int $id) |
Check notification status for object and user. More... | |
static | hasOptOut (int $obj_id) |
Is opt out (disable notification) allowed? More... | |
static | getNotificationsForObject (int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false) |
Get all users/recipients for given object. More... | |
static | setNotification (int $type, int $user_id, int $id, bool $status=true) |
Set notification status for object and user. More... | |
static | updateNotificationTime (int $type, int $id, array $user_ids, ?int $page_id=null, bool $activate_new_entries=true) |
Update the last mail timestamp for given object and users. More... | |
static | removeForObject (int $type, int $id) |
Remove all notifications for given object. More... | |
static | removeForUser (int $user_id) |
Remove all notifications for given user. More... | |
static | getActivatedNotifications (int $type, int $user_id) |
Get activated notifications of give type for user. More... | |
Data Fields | |
const | THRESHOLD = 180 |
const | TYPE_EXERCISE_SUBMISSION = 1 |
const | TYPE_WIKI = 2 |
const | TYPE_WIKI_PAGE = 3 |
const | TYPE_BLOG = 4 |
const | TYPE_DATA_COLLECTION = 5 |
const | TYPE_POLL = 6 |
const | TYPE_LM_BLOCKED_USERS = 7 |
const | TYPE_BOOK = 8 |
const | TYPE_LM = 9 |
const | TYPE_LM_PAGE = 10 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 19 of file class.ilNotification.php.
|
static |
Get activated notifications of give type for user.
Definition at line 339 of file class.ilNotification.php.
References $DIC.
Referenced by ilExcTutorRepository\getExerciseIdsBeingTutor().
|
static |
Get all users/recipients for given object.
Definition at line 104 of file class.ilNotification.php.
References $DIC, $ilDB, $log, $ref_id, ilObject\_getAllReferences(), ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupObjectId(), ilLoggerFactory\getLogger(), ilObjNotificationSettings\MODE_DEF_OFF_USER_ACTIVATION, ilObjNotificationSettings\MODE_DEF_ON_NO_OPT_OUT, and ilObjNotificationSettings\MODE_DEF_ON_OPT_OUT.
Referenced by ilObjDataCollection\doUpdate(), ilExSubmissionBaseGUI\handleNewUpload(), ilExAssTypeWikiTeam\handleNewUpload(), ilExAssignmentReminder\parseGradeReminders(), ilLMPageGUI\processAnswer(), ilLearningModuleNotification\send(), ilWikiUtil\sendNotification(), ilObjBlog\sendNotification(), ilBookCronNotification\sendNotifications(), and ilObjPollGUI\sendNotifications().
|
static |
Check notification status for object and user.
Definition at line 36 of file class.ilNotification.php.
References $DIC, $ilDB, $ref_id, ilObject\_getAllReferences(), ilGroupParticipants\_isParticipant(), ilParticipants\_isParticipant(), ILIAS\Repository\int(), ilObjNotificationSettings\MODE_DEF_OFF_USER_ACTIVATION, ilObjNotificationSettings\MODE_DEF_ON_NO_OPT_OUT, and ilObjNotificationSettings\MODE_DEF_ON_OPT_OUT.
Referenced by ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilObjExerciseGUI\getEditFormCustomValues(), ilLMPresentationGUI\getHeaderAction(), ilPollBlockGUI\getHTML(), ilObjContentObjectGUI\getPropertiesFormValues(), ilObjBookingPoolGUI\initHeaderAction(), and ilObjBlogGUI\initHeaderAction().
|
static |
Is opt out (disable notification) allowed?
Definition at line 95 of file class.ilNotification.php.
References ilObjNotificationSettings\MODE_DEF_ON_NO_OPT_OUT.
Referenced by ilWikiPageGUI\addHeaderAction(), ilLMPresentationGUI\getHeaderAction(), and ilObjBlogGUI\initHeaderAction().
|
static |
Remove all notifications for given object.
Definition at line 308 of file class.ilNotification.php.
Referenced by ilWikiPage\delete(), ilObjWiki\delete(), ilObjExercise\delete(), and ilObjBlog\doDelete().
|
static |
Remove all notifications for given user.
Definition at line 324 of file class.ilNotification.php.
Referenced by ilObjUser\delete(), and NotificationTest\testRemoveForUser().
|
static |
Set notification status for object and user.
Definition at line 233 of file class.ilNotification.php.
Referenced by ilWikiPageGUI\executeCommand(), ilLMPresentationGUI\executeCommand(), ilObjBookingPoolGUI\saveNotificationObject(), ilObjContentObjectGUI\saveProperties(), ilObjBlogGUI\setNotification(), ilObjPollGUI\subscribe(), ilObjDataCollectionGUI\toggleNotification(), ilObjBibliographicGUI\toggleNotification(), ilObjPollGUI\unsubscribe(), and ilObjExerciseGUI\updateCustom().
|
static |
Update the last mail timestamp for given object and users.
Definition at line 254 of file class.ilNotification.php.
References $DIC, $id, $ilDB, and $type.
Referenced by ilObjDataCollection\doUpdate(), ilLearningModuleNotification\send(), ilWikiUtil\sendNotification(), ilObjBlog\sendNotification(), and ilObjPollGUI\sendNotifications().
const ilNotification::THRESHOLD = 180 |
Definition at line 21 of file class.ilNotification.php.
const ilNotification::TYPE_BLOG = 4 |
Definition at line 25 of file class.ilNotification.php.
Referenced by ilObjBlog\doDelete(), ilObjBlogGUI\initHeaderAction(), ilObjBlog\sendNotification(), and ilObjBlogGUI\setNotification().
const ilNotification::TYPE_BOOK = 8 |
Definition at line 29 of file class.ilNotification.php.
Referenced by ilObjBookingPoolGUI\initHeaderAction(), ilObjBookingPoolGUI\saveNotificationObject(), and ilBookCronNotification\sendNotifications().
const ilNotification::TYPE_DATA_COLLECTION = 5 |
Definition at line 26 of file class.ilNotification.php.
Referenced by ilObjDataCollectionGUI\addHeaderAction(), ilObjDataCollection\doUpdate(), ilObjDataCollectionGUI\toggleNotification(), and ilObjBibliographicGUI\toggleNotification().
const ilNotification::TYPE_EXERCISE_SUBMISSION = 1 |
Definition at line 22 of file class.ilNotification.php.
Referenced by ilObjExercise\delete(), ilObjExerciseGUI\getEditFormCustomValues(), ilExcTutorRepository\getExerciseIdsBeingTutor(), ilExSubmissionBaseGUI\handleNewUpload(), ilExAssTypeWikiTeam\handleNewUpload(), ilExAssignmentReminder\parseGradeReminders(), and ilObjExerciseGUI\updateCustom().
const ilNotification::TYPE_LM = 9 |
Definition at line 30 of file class.ilNotification.php.
Referenced by ilLMPresentationGUI\executeCommand(), ilLMPresentationGUI\getHeaderAction(), and ilLearningModuleNotification\send().
const ilNotification::TYPE_LM_BLOCKED_USERS = 7 |
Definition at line 28 of file class.ilNotification.php.
Referenced by ilObjContentObjectGUI\getPropertiesFormValues(), ilLMPageGUI\processAnswer(), and ilObjContentObjectGUI\saveProperties().
const ilNotification::TYPE_LM_PAGE = 10 |
Definition at line 31 of file class.ilNotification.php.
Referenced by ilLMPage\afterUpdate(), ilLMPresentationGUI\executeCommand(), ilLMPresentationGUI\getHeaderAction(), ilLMPresentationGUI\observeNoteAction(), and ilLearningModuleNotification\send().
const ilNotification::TYPE_POLL = 6 |
Definition at line 27 of file class.ilNotification.php.
Referenced by ilPollBlockGUI\getHTML(), ilObjPollGUI\sendNotifications(), ilObjPollGUI\subscribe(), and ilObjPollGUI\unsubscribe().
const ilNotification::TYPE_WIKI = 2 |
Definition at line 23 of file class.ilNotification.php.
Referenced by ilWikiPageGUI\addHeaderAction(), ilWikiPage\create(), ilObjWiki\delete(), ilWikiPageGUI\executeCommand(), and ilWikiUtil\sendNotification().
const ilNotification::TYPE_WIKI_PAGE = 3 |
Definition at line 24 of file class.ilNotification.php.
Referenced by ilWikiPageGUI\addHeaderAction(), ilWikiPage\delete(), ilWikiPageGUI\executeCommand(), ilWikiPageGUI\observeNoteAction(), ilWikiUtil\sendNotification(), and ilWikiPage\update().