18 return self::TABLE_NAME;
27 return self::TABLE_NAME;
42 $not_id = $ilADNNotification->
getId();
44 if (!isset(self::$request_cache[
$usr_id][$not_id])) {
45 self::$request_cache[
$usr_id][$not_id] = self::where(array(
47 'notification_id' => $not_id,
51 return (
bool) self::$request_cache[
$usr_id][$not_id];
60 if (!self::hasDimissed($ilObjUser, $ilADNNotification) and $ilADNNotification->
isUserAllowedToDismiss($ilObjUser)) {
62 $obj->setNotificationId($ilADNNotification->
getId());
63 $obj->setUsrId($ilObjUser->
getId());
76 foreach (self::where(array(
'notification_id' => $ilADNNotification->
getId())) as $dismiss) {
static returnDbTableName()
static hasDimissed(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
static dismiss(ilObjUser $ilObjUser, ilADNNotification $ilADNNotification)
getConnectorContainerName()
setNotificationId($notification_id)
getId()
get object id public
isUserAllowedToDismiss(ilObjUser $ilUser)