PHP Class Newscoop\Services\UserPointsService

Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$em Doctrine\ORM\EntityManager

Méthodes publiques

Méthode Description
__construct ( EntityManager $em )
find ( string $action ) : UserPoints Find UserPoints entity object for this action.
findAll ( ) : array Find all userpoints
update ( GenericEvent $event ) : void Receives notifications of points events.
updateEntries ( array $values ) : void Update a points entry

Méthodes protégées

Méthode Description
getRepository ( ) : Newscoop\Entity\Repository\UserPointsRepository Get repository for userpoints entity

Method Details

__construct() public méthode

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

find() public méthode

Find UserPoints entity object for this action.
public find ( string $action ) : UserPoints
$action string
Résultat Newscoop\Entity\UserPoints

findAll() public méthode

Find all userpoints
public findAll ( ) : array
Résultat array

getRepository() protected méthode

Get repository for userpoints entity
protected getRepository ( ) : Newscoop\Entity\Repository\UserPointsRepository
Résultat Newscoop\Entity\Repository\UserPointsRepository

update() public méthode

Receives notifications of points events.
public update ( GenericEvent $event ) : void
$event Newscoop\EventDispatcher\Events\GenericEvent
Résultat void

updateEntries() public méthode

Update a points entry
public updateEntries ( array $values ) : void
$values array
Résultat void

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager