An expression object for complex ORDER BY clauses
$_direction
protected string
Iterates over each part of the expression recursively for every level of the expressions tree and executes the $visitor callable passing as first parameter the instance of the expression currently being iterated.
__construct( Cake\Database\ExpressionInterface|string $field , string $direction )
Constructor
Cake\Database\ExpressionInterface
|string $field
$direction
sql( Cake\Database\ValueBinder $generator )
Converts the Node into a SQL string fragment.
$generator
Cake\Database\ExpressionInterface::sql()
traverse( callable $visitor )
Iterates over each part of the expression recursively for every level of the expressions tree and executes the $visitor callable passing as first parameter the instance of the expression currently being iterated.
$visitor
Cake\Database\ExpressionInterface::traverse()
getField( )
Returns the field name
Cake\Database\ExpressionInterface
setField( string|Cake\Database\ExpressionInterface $field )
Sets the field name
Cake\Database\ExpressionInterface
$field
© 2005–2018 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.5/class-Cake.Database.Expression.OrderClauseExpression.html