Fr3nch13/CakePHP Utilities

StringExpression
in package
implements ExpressionInterface

String expression with collation.

Table of Contents

Interfaces

ExpressionInterface
An interface used by Expression objects.

Properties

$collation  : string
$string  : string

Methods

__construct()  : mixed
getCollation()  : string
Returns the string collation.
setCollation()  : void
Sets the string collation.
sql()  : string
Converts the Node into a SQL string fragment.
traverse()  : $this
Iterates over each part of the expression recursively for every level of the expressions tree and executes the $callback callable passing as first parameter the instance of the expression currently being iterated.

Properties

Methods

__construct()

public __construct(string $string, string $collation) : mixed
Parameters
$string : string

String value

$collation : string

String collation

getCollation()

Returns the string collation.

public getCollation() : string
Return values
string

setCollation()

Sets the string collation.

public setCollation(string $collation) : void
Parameters
$collation : string

String collation

sql()

Converts the Node into a SQL string fragment.

public sql(ValueBinder $binder) : string
Parameters
$binder : ValueBinder

Parameter binder

Tags
inheritDoc
Return values
string

traverse()

Iterates over each part of the expression recursively for every level of the expressions tree and executes the $callback callable passing as first parameter the instance of the expression currently being iterated.

public traverse(Closure $callback) : $this
Parameters
$callback : Closure

The callable to apply to all nodes.

Tags
inheritDoc
Return values
$this

        
On this page

Search results