Doctrine\Common\Collections\Expr\ClosureExpressionVisitor
Walks an expression graph and turns it into a PHP closure.
This closure can be used with and is used internally
by .
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class ClosureExpressionVisitor
extends ExpressionVisitor
{
- // methods
- public static mixed getObjectFieldValue()
- public static Closure sortByField()
- public void walkComparison()
- public void walkValue()
- public void walkCompositeExpression()
- private void andExpressions()
- private void orExpressions()
- // Inherited methods from ExpressionVisitor
- public abstract mixed walkComparison()
- public abstract mixed walkValue()
- public abstract mixed walkCompositeExpression()
- public mixed dispatch()
Hierarchy
Methods
private
public
- getObjectFieldValue() — Access the field of a given object. This field has to be public directly or indirectly (through an accessor get* or a magic method, __get, __call).
- sortByField() — Helper for sorting arrays of objects based on multiple fields + orientations.
- walkComparison() — {@inheritDoc}
- walkCompositeExpression() — {@inheritDoc}
- walkValue() — {@inheritDoc}
Inherited from Doctrine\Common\Collections\Expr\ExpressionVisitor
public
- dispatch() — Dispatch walking an expression to the appropriate handler.
- walkComparison() — Convert a comparison expression into the target query language output
- walkCompositeExpression() — Convert a composite expression into the target query language output
- walkValue() — Convert a value expression into the target query language part.