PHP Class WellCommerce\Component\DataSet\Paginator\DataSetPaginator

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Component\DataSet\Paginator\DataSetPaginatorInterface
Exibir arquivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
getTotalRows ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) : integer

Protected Methods

Method Description
getOperator ( string $operator ) : string
replaceHaving ( Doctrine\ORM\Query\Expr\Andx $having, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, Doctrine\ORM\QueryBuilder $queryBuilder ) Replaces all having clauses and resets DQL's having part
replaceSingleHavingClause ( Doctrine\ORM\Query\Expr\Comparison $comparison, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, Doctrine\ORM\QueryBuilder $queryBuilder ) Replaces a single having clause because scalar types are not supported in doctrine paginator by default

Method Details

getOperator() protected method

protected getOperator ( string $operator ) : string
$operator string
return string

getTotalRows() public method

public getTotalRows ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) : integer
$queryBuilder Doctrine\ORM\QueryBuilder
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
return integer

replaceHaving() protected method

Replaces all having clauses and resets DQL's having part
protected replaceHaving ( Doctrine\ORM\Query\Expr\Andx $having, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, Doctrine\ORM\QueryBuilder $queryBuilder )
$having Doctrine\ORM\Query\Expr\Andx
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
$queryBuilder Doctrine\ORM\QueryBuilder

replaceSingleHavingClause() protected method

Replaces a single having clause because scalar types are not supported in doctrine paginator by default
protected replaceSingleHavingClause ( Doctrine\ORM\Query\Expr\Comparison $comparison, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, Doctrine\ORM\QueryBuilder $queryBuilder )
$comparison Doctrine\ORM\Query\Expr\Comparison
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
$queryBuilder Doctrine\ORM\QueryBuilder