class ClosureExpressionVisitor

Walks an expression graph and turns it into a PHP closure.

This closure can be used with {@Collection#filter()} and is used internally by {@ArrayCollection#select()}.

@author Benjamin Eberlei <kontakt@beberlei.de> @since 2.3

Hierarchy

Expanded class hierarchy of ClosureExpressionVisitor

2 files declare their use of ClosureExpressionVisitor

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php, line 31

Namespace

Doctrine\Common\Collections\Expr
View source

Members

Namesort descending Modifiers Type Description Overrides
ClosureExpressionVisitor::andExpressions private function
ClosureExpressionVisitor::getObjectFieldValue public static function 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).
ClosureExpressionVisitor::orExpressions private function
ClosureExpressionVisitor::sortByField public static function Helper for sorting arrays of objects based on multiple fields + orientations.
ClosureExpressionVisitor::walkComparison public function Convert a comparison expression into the target query language output Overrides ExpressionVisitor::walkComparison
ClosureExpressionVisitor::walkCompositeExpression public function Convert a composite expression into the target query language output Overrides ExpressionVisitor::walkCompositeExpression
ClosureExpressionVisitor::walkValue public function Convert a value expression into the target query language part. Overrides ExpressionVisitor::walkValue
ExpressionVisitor::dispatch public function Dispatch walking an expression to the appropriate handler.