contributions/usermanagement.notifications/model/classes/notificationsexceptions.facade.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Facade class for notification exceptions 00004 */ 00005 class NotificationsExceptions { 00006 /** 00007 * Returns true if notifications for given source and source id are 00008 * excluded for given user 00009 */ 00010 public static function excluded($id_user, $source, $source_id) { 00011 $ret = false; 00012 if ($id_user && $source && $source_id) { 00013 $dao = new DAONotificationsexceptions(); 00014 $dao->id_user = $id_user; 00015 $dao->source = $source; 00016 $dao->source_id = $source_id; 00017 $ret = ($dao->count() > 0); 00018 } 00019 return $ret; 00020 } 00021 }