PHP Class Newscoop\Services\UserPointsService

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager

Public Methods

Method 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

Protected Methods

Method Description
getRepository ( ) : Newscoop\Entity\Repository\UserPointsRepository Get repository for userpoints entity

Method Details

__construct() public method

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

find() public method

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

findAll() public method

Find all userpoints
public findAll ( ) : array
return array

getRepository() protected method

Get repository for userpoints entity
protected getRepository ( ) : Newscoop\Entity\Repository\UserPointsRepository
return Newscoop\Entity\Repository\UserPointsRepository

update() public method

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

updateEntries() public method

Update a points entry
public updateEntries ( array $values ) : void
$values array
return void

Property Details

$em protected property

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