PHP Класс WellCommerce\Component\DataSet\QueryBuilder\DataSetQueryBuilder

Автор: Adam Piotrowski ([email protected])
Наследование: implements WellCommerce\Component\DataSet\QueryBuilder\DataSetQueryBuilderInterface
Показать файл Открыть проект

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

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