PHP Class Newscoop\Service\Implementation\AEntityServiceDoctrine

Inheritance: extends AEntityBaseServiceDoctrine, implements Newscoop\Service\IEntityService
Exibir arquivo Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$searchClassName string

Public Methods

Method Description
__construct ( ResourceId $id ) Construct the service base d on the provided resource id.
getCount ( Search $search = NULL ) * ---------------------------------------------------------------
getEntities ( Search $search = NULL, $offset, $limit )

Protected Methods

Method Description
map ( Search $search, Column $column ) : string Maps a search column to an actual doctrine field name.
processInterogation ( Search $search, Doctrine\ORM\QueryBuilder $qb ) Builds on to the provided query builder the interogations that will reflect the provided search object.
processOrder ( Search $search, Doctrine\ORM\QueryBuilder $qb ) Builds on to the provided query builder the ordering that will reflect the provided search object.

Method Details

__construct() public method

Construct the service base d on the provided resource id.
public __construct ( ResourceId $id )
$id Newscoop\Service\Resource\ResourceId The resource id, not null not empty

getCount() public method

* ---------------------------------------------------------------
public getCount ( Search $search = NULL )
$search Newscoop\Service\Model\Search\Search

getEntities() public method

public getEntities ( Search $search = NULL, $offset, $limit )
$search Newscoop\Service\Model\Search\Search

map() abstract protected method

Maps a search column to an actual doctrine field name.
abstract protected map ( Search $search, Column $column ) : string
$search Newscoop\Service\Model\Search\Search The search object containing the column, *(not null not empty).
$column Newscoop\Service\Model\Search\Column The column for which to get the doctrine field name, *(not null not empty).
return string The doctrine field name.

processInterogation() protected method

Builds on to the provided query builder the interogations that will reflect the provided search object.
protected processInterogation ( Search $search, Doctrine\ORM\QueryBuilder $qb )
$search Newscoop\Service\Model\Search\Search The search from which the query is build, if the search does not reflect any interogation no actions needs to be taken, *(not null not empty).
$qb Doctrine\ORM\QueryBuilder The Doctrine query builder to be constructed on, *(not null not empty).

processOrder() protected method

Builds on to the provided query builder the ordering that will reflect the provided search object.
protected processOrder ( Search $search, Doctrine\ORM\QueryBuilder $qb )
$search Newscoop\Service\Model\Search\Search The search from which the query is build, if the search does not reflect any ordering no actions needs to be taken, *(not null not empty).
$qb Doctrine\ORM\QueryBuilder The Doctrine query builder to be constructed on, *(not null not empty).

Property Details

$searchClassName protected_oe property

protected string $searchClassName
return string