PHP 클래스 Newscoop\Service\Implementation\AEntityServiceDoctrine

상속: extends AEntityBaseServiceDoctrine, implements Newscoop\Service\IEntityService
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$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