. */ /** * Agorae Service */ require_once(FILESYSTEMROOTPATH."jc/include/dao/NotificationsDao.php"); class NotificationsService { private $notificationsDao; /** * Default constructor * * @param NotificationsDao */ public function __construct(NotificationsDao $notificationsDao) { $this->notificationsDao = $notificationsDao; } public function loadMine(){ return $this->notificationsDao->loadMine(); } public function create($pid, $type, $open, $close){ return $this->notificationsDao->create($pid, $type, $open, $close); } public function update($pid, $type, $open, $close){ return $this->notificationsDao->update($pid, $type, $open, $close); } public function seen($pid, $type){ return $this->notificationsDao->seen($pid, $type); } public function exists($pid, $type){ return $this->notificationsDao->exists($pid, $type); } } ?>