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
파일 보기 프로젝트 열기: doctrine/collections 1 사용 예제들

공개 메소드들

메소드 설명
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