PHP Class Newscoop\Services\NotificationService

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager
$params array

Public Methods

Method Description
__construct ( EntityManager $em )
findRecipients ( ) : array Find emails from users who should recieve notification

Private Methods

Method Description
executeQuery ( string $dql, string $type ) : array Execute given dql query
findByGroup ( ) : array Find emails allowed by group role but those denied by user role
findByUser ( ) : array Find emails allowed by user role

Method Details

__construct() public method

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

findRecipients() public method

Find emails from users who should recieve notification
public findRecipients ( ) : array
return array

Property Details

$em protected property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager

$params protected property

protected array $params
return array