Add web notifications

This commit is contained in:
Frederic Guillot
2015-10-03 12:09:27 -04:00
parent b5a2b8f9f7
commit d67d7c54e6
41 changed files with 1670 additions and 567 deletions

View File

@@ -10,6 +10,17 @@ namespace Helper;
*/
class User extends \Core\Base
{
/**
* Return true if the logged user as unread notifications
*
* @access public
* @return boolean
*/
public function hasNotifications()
{
return $this->webNotification->hasNotifications($this->userSession->getId());
}
/**
* Get initials from a user
*