ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilNotification. More...
Static Public Member Functions | |
static | hasNotification ($type, $user_id, $id) |
Check notification status for object and user. More... | |
static | hasOptOut ($obj_id) |
Is opt out (disable notification) allowed? More... | |
static | getNotificationsForObject ($type, $id, $page_id=null, $ignore_threshold=false) |
Get all users for given object. More... | |
static | setNotification ($type, $user_id, $id, $status=true) |
Set notification status for object and user. More... | |
static | updateNotificationTime ($type, $id, array $user_ids, $page_id=false) |
Update the last mail timestamp for given object and users. More... | |
static | removeForObject ($type, $id) |
Remove all notifications for given object. More... | |
static | removeForUser ($user_id) |
Remove all notifications for given user. More... | |
Data Fields | |
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 | THRESHOLD = 180 |
Class ilNotification.
Definition at line 15 of file class.ilNotification.php.
|
static |
Get all users for given object.
int | $type | |
int | $id | |
int | $page_id | |
bool | $ignore_threshold |
Definition at line 119 of file class.ilNotification.php.
References $DIC, $id, $ilDB, $row, $type, ilObject\_getAllReferences(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupObjectId(), array, date, 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(), ilLMPageGUI\processAnswer(), ilWikiUtil\sendNotification(), ilObjBlog\sendNotification(), and ilObjPollGUI\sendNotifications().
|
static |
Check notification status for object and user.
int | $type | |
int | $user_id | |
int | $id |
Definition at line 35 of file class.ilNotification.php.
References $DIC, $id, $ilDB, $type, ilObject\_getAllReferences(), ilGroupParticipants\_isParticipant(), ilParticipants\_isParticipant(), 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(), ilPollBlockGUI\getHTML(), ilObjContentObjectGUI\getPropertiesFormValues(), and ilObjBlogGUI\initHeaderAction().
|
static |
Is opt out (disable notification) allowed?
int | $obj_id |
Definition at line 100 of file class.ilNotification.php.
References ilObjNotificationSettings\MODE_DEF_ON_NO_OPT_OUT.
Referenced by ilWikiPageGUI\addHeaderAction(), and ilObjBlogGUI\initHeaderAction().
|
static |
Remove all notifications for given object.
int | $type | |
int | $id |
Definition at line 273 of file class.ilNotification.php.
References $DIC, $id, $ilDB, and $type.
Referenced by ilObjExercise\delete(), ilWikiPage\delete(), ilObjWiki\delete(), and ilObjBlog\doDelete().
|
static |
Remove all notifications for given user.
int | $user_id |
Definition at line 289 of file class.ilNotification.php.
Referenced by ilObjUser\delete().
|
static |
Set notification status for object and user.
int | $type | |
int | $user_id | |
int | $id | |
bool | $status |
Definition at line 225 of file class.ilNotification.php.
References $DIC, $id, $ilDB, $type, and array.
Referenced by ilWikiPageGUI\executeCommand(), ilObjContentObjectGUI\saveProperties(), ilObjBlogGUI\setNotification(), ilObjPollGUI\subscribe(), ilObjBibliographicGUI\toggleNotification(), ilObjDataCollectionGUI\toggleNotification(), ilObjPollGUI\unsubscribe(), and ilObjExerciseGUI\updateCustom().
|
static |
Update the last mail timestamp for given object and users.
int | $type | |
int | $id | |
array | $user_ids | |
int | $page_id |
Definition at line 247 of file class.ilNotification.php.
References $DIC, $id, $ilDB, $type, and date.
Referenced by ilObjDataCollection\doUpdate(), ilWikiUtil\sendNotification(), ilObjBlog\sendNotification(), and ilObjPollGUI\sendNotifications().
const ilNotification::THRESHOLD = 180 |
Definition at line 25 of file class.ilNotification.php.
const ilNotification::TYPE_BLOG = 4 |
Definition at line 20 of file class.ilNotification.php.
Referenced by ilObjBlog\doDelete(), ilObjBlogGUI\initHeaderAction(), ilObjBlog\sendNotification(), and ilObjBlogGUI\setNotification().
const ilNotification::TYPE_DATA_COLLECTION = 5 |
Definition at line 21 of file class.ilNotification.php.
Referenced by ilObjDataCollectionGUI\addHeaderAction(), ilObjDataCollection\doUpdate(), ilObjBibliographicGUI\toggleNotification(), and ilObjDataCollectionGUI\toggleNotification().
const ilNotification::TYPE_EXERCISE_SUBMISSION = 1 |
Definition at line 17 of file class.ilNotification.php.
Referenced by ilObjExercise\delete(), ilObjExerciseGUI\getEditFormCustomValues(), ilExSubmissionBaseGUI\handleNewUpload(), and ilObjExerciseGUI\updateCustom().
const ilNotification::TYPE_LM_BLOCKED_USERS = 7 |
Definition at line 23 of file class.ilNotification.php.
Referenced by ilObjContentObjectGUI\getPropertiesFormValues(), ilLMPageGUI\processAnswer(), and ilObjContentObjectGUI\saveProperties().
const ilNotification::TYPE_POLL = 6 |
Definition at line 22 of file class.ilNotification.php.
Referenced by ilPollBlockGUI\getHTML(), ilObjPollGUI\sendNotifications(), ilObjPollGUI\subscribe(), and ilObjPollGUI\unsubscribe().
const ilNotification::TYPE_WIKI = 2 |
Definition at line 18 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 19 of file class.ilNotification.php.
Referenced by ilWikiPageGUI\addHeaderAction(), ilWikiPage\delete(), ilWikiPageGUI\executeCommand(), ilWikiPageGUI\observeNoteAction(), ilWikiUtil\sendNotification(), and ilWikiPage\update().