46 $not_id = $ilADNNotification->
getId();
48 if (!isset(self::$request_cache[
$usr_id][$not_id])) {
51 'notification_id' => $not_id,
55 return (
bool) self::$request_cache[
$usr_id][$not_id];
60 if (!self::hasDimissed($ilObjUser, $ilADNNotification) && $ilADNNotification->
isUserAllowedToDismiss($ilObjUser)) {
62 $obj->setNotificationId($ilADNNotification->
getId());
63 $obj->setUsrId($ilObjUser->
getId());
73 foreach (self::where([
'notification_id' => $ilADNNotification->
getId()]) as $dismiss) {
86 protected ?
int $id =
null;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static where($where, $operator=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
int $usr_id
@con_has_field true @con_fieldtype integer @con_length 8
int $notification_id
@con_has_field true @con_fieldtype integer @con_length 8
getConnectorContainerName()
@description Return the Name of your Connector Table
static dismiss(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
static array $request_cache
static returnDbTableName()
static hasDimissed(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
int $id
@con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype integer @con_length 8 @co...
setNotificationId(int $notification_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isUserAllowedToDismiss(ilObjUser $user)