31 return self::TABLE_NAME;
39 return self::TABLE_NAME;
46 $not_id = $ilADNNotification->
getId();
48 if (!isset(self::$request_cache[
$usr_id][$not_id])) {
49 self::$request_cache[
$usr_id][$not_id] = self::where([
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) {
105 public function setId(
int $id): void
static returnDbTableName()
static hasDimissed(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
static array $request_cache
static dismiss(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getConnectorContainerName()
isUserAllowedToDismiss(ilObjUser $user)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
int $usr_id
true integer 8
int $id
true true true integer 8 true
int $notification_id
true integer 8
setNotificationId(int $notification_id)