PHP 클래스 WellCommerce\Component\DataSet\QueryBuilder\DataSetQueryBuilder

저자: Adam Piotrowski ([email protected])
상속: implements WellCommerce\Component\DataSet\QueryBuilder\DataSetQueryBuilderInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

공개 메소드들

메소드 설명
__construct ( WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface $repository ) DataSetQueryBuilder constructor.
getQueryBuilder ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : Doctrine\ORM\QueryBuilder Prepares and returns Doctrine's QueryBuilder

비공개 메소드들

메소드 설명
addColumnConditionToQueryBuilder ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnInterface $column, WellCommerce\Component\DataSet\Conditions\ConditionInterface $condition ) Adds additional where/having clauses for given dataset's column
getConditions ( WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : WellCommerce\Component\DataSet\Conditions\ConditionsCollection Returns the query conditions
getOrderByExpression ( WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) : Doctrine\ORM\Query\Expr\OrderBy Prepares an ordering expression
setColumnConditions ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) Adds additional conditions to query

메소드 상세

__construct() 공개 메소드

DataSetQueryBuilder constructor.
public __construct ( WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface $repository )
$repository WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface

getQueryBuilder() 공개 메소드

Prepares and returns Doctrine's QueryBuilder
public getQueryBuilder ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : Doctrine\ORM\QueryBuilder
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
$request WellCommerce\Component\DataSet\Request\DataSetRequestInterface
리턴 Doctrine\ORM\QueryBuilder