PHP Class WellCommerce\Component\DataSet\Paginator\DataSetPaginator

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

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

protected getOperator ( string $operator ) : string
$operator string
Résultat string

getTotalRows() public méthode

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

replaceHaving() protected méthode

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 méthode

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