PHP Класс Doctrine\Common\Collections\Expr\ClosureExpressionVisitor

This closure can be used with {@Collection #filter()} and is used internally by {@ArrayCollection #select()}.
С версии: 2.3
Автор: Benjamin Eberlei ([email protected])
Наследование: extends Doctrine\Common\Collections\Expr\ExpressionVisitor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getObjectFieldValue ( object $object, string $field ) : mixed Accesses the field of a given object. This field has to be public directly or indirectly (through an accessor get*, is*, or a magic method, __get, __call).
sortByField ( string $name, integer $orientation = 1, Closure $next = null ) : Closure Helper for sorting arrays of objects based on multiple fields + orientations.
walkComparison ( Comparison $comparison ) {@inheritDoc}
walkCompositeExpression ( Doctrine\Common\Collections\Expr\CompositeExpression $expr ) {@inheritDoc}
walkValue ( Doctrine\Common\Collections\Expr\Value $value ) {@inheritDoc}

Приватные методы

Метод Описание
andExpressions ( array $expressions ) : callable
orExpressions ( array $expressions ) : callable

Описание методов

getObjectFieldValue() публичный статический Метод

Accesses the field of a given object. This field has to be public directly or indirectly (through an accessor get*, is*, or a magic method, __get, __call).
public static getObjectFieldValue ( object $object, string $field ) : mixed
$object object
$field string
Результат mixed

sortByField() публичный статический Метод

Helper for sorting arrays of objects based on multiple fields + orientations.
public static sortByField ( string $name, integer $orientation = 1, Closure $next = null ) : Closure
$name string
$orientation integer
$next Closure
Результат Closure

walkComparison() публичный Метод

{@inheritDoc}
public walkComparison ( Comparison $comparison )
$comparison Comparison

walkCompositeExpression() публичный Метод

{@inheritDoc}
public walkCompositeExpression ( Doctrine\Common\Collections\Expr\CompositeExpression $expr )
$expr Doctrine\Common\Collections\Expr\CompositeExpression

walkValue() публичный Метод

{@inheritDoc}
public walkValue ( Doctrine\Common\Collections\Expr\Value $value )
$value Doctrine\Common\Collections\Expr\Value