Documentation

ObjectExpressionVisitor extends ClosureExpressionVisitor

Class ObjectExpressionVisitor

Table of Contents

Methods

filterLength()  : int
filterLower()  : string
filterLtrim()  : string
filterRtrim()  : string
filterTrim()  : string
filterUpper()  : string
getObjectFieldValue()  : mixed
Accesses the field of a given object.
sortByField()  : Closure
Helper for sorting arrays of objects based on multiple fields + orientations.
walkComparison()  : mixed
{@inheritDoc}

Methods

filterLength()

public static filterLength(string $str) : int
Parameters
$str : string
Return values
int

filterLower()

public static filterLower(string $str) : string
Parameters
$str : string
Return values
string

filterLtrim()

public static filterLtrim(string $str) : string
Parameters
$str : string
Return values
string

filterRtrim()

public static filterRtrim(string $str) : string
Parameters
$str : string
Return values
string

filterTrim()

public static filterTrim(string $str) : string
Parameters
$str : string
Return values
string

filterUpper()

public static filterUpper(string $str) : string
Parameters
$str : string
Return values
string

getObjectFieldValue()

Accesses the field of a given object.

public static getObjectFieldValue(object $object, string $field) : mixed
Parameters
$object : object
$field : string

sortByField()

Helper for sorting arrays of objects based on multiple fields + orientations.

public static sortByField(string $name[, int $orientation = 1 ][, Closure|null $next = null ]) : Closure

Comparison between two strings is natural and case insensitive.

Parameters
$name : string
$orientation : int = 1
$next : Closure|null = null
Return values
Closure

walkComparison()

{@inheritDoc}

public walkComparison(Comparison $comparison) : mixed
Parameters
$comparison : Comparison

        
On this page

Search results