PHP Класс Newscoop\Service\Implementation\AEntityServiceDoctrine

Наследование: extends AEntityBaseServiceDoctrine, implements Newscoop\Service\IEntityService
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$searchClassName string

Открытые методы

Метод Описание
__construct ( ResourceId $id ) Construct the service base d on the provided resource id.
getCount ( Search $search = NULL ) * ---------------------------------------------------------------
getEntities ( Search $search = NULL, $offset, $limit )

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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 getCount ( Search $search = NULL )
$search Newscoop\Service\Model\Search\Search

getEntities() публичный Метод

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

map() абстрактный защищенный Метод

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).
Результат string The doctrine field name.

processInterogation() защищенный Метод

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() защищенный Метод

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).

Описание свойств

$searchClassName защищенное свойство

protected string $searchClassName
Результат string