Doctrine\Common\Collections\Criteria
Criteria for filtering Selectable collections.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class Criteria
{
- // constants
- const ASC = 'ASC';
- const DESC = 'DESC';
- // members
- private ExpressionBuilder $expressionBuilder;
- private Expression $expression;
- private array|null $orderings;
- private int $firstResult;
- private int $maxResults;
- // methods
- public static Criteria create()
- public static ExpressionBuilder expr()
- public void __construct()
- public Criteria where()
- public Criteria andWhere()
- public Criteria orWhere()
- public Expression|null getWhereExpression()
- public array getOrderings()
- public Criteria orderBy()
- public firstResult. getFirstResult()
- public Criteria setFirstResult()
- public maxResults. getMaxResults()
- public Criteria setMaxResults()
Constants
Name | Value |
---|---|
ASC | 'ASC' |
DESC | 'DESC' |
Members
private
- $expression — \Doctrine\Common\Collections\Expr\Expression
- $expressionBuilder — \Doctrine\Common\Collections\ExpressionBuilder
- $firstResult — int
- $maxResults — int
- $orderings — Doctrine\Common\Collections\array|null
Methods
public
- __construct() — Construct new criteria
- andWhere() — Append the where expression to evaluate when this criteria is searched for using an AND with previous expression.
- create() — Creates an instance of the class.
- expr() — Return the expression builder.
- getFirstResult() — Get current first result option of the critera.
- getMaxResults() — Get maxResults.
- getOrderings() — Get current orderings of this Criteria
- getWhereExpression() — Get the expression attached to this criteria.
- orWhere() — Append the where expression to evaluate when this criteria is searched for using an OR with previous expression.
- orderBy() — Set the ordering of the result of this criteria.
- setFirstResult() — Set number of first result that this criteria should return.
- setMaxResults() — Set maxResults.
- where() — Set the where expression to evaluate when this criteria is searched for.