Represents a single identifier name in the database.
Identifier values are unsafe with user supplied data. Values will be quoted when identifier quoting is enabled.
stringHolds the identifier string
string|nullConstructor
Returns the collation.
Returns the identifier this expression represents
Sets the collation.
Sets the identifier this expression represents
Converts the Node into a SQL string fragment.
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.
__construct(string $identifier, string|null $collation = null)
Constructor
string $identifier The identifier this expression represents
string|null $collation optional The identifier collation
getCollation(): string|null
Returns the collation.
string|nullgetIdentifier(): string
Returns the identifier this expression represents
stringsetCollation(string $collation): void
Sets the collation.
string $collation Identifier collation
voidsetIdentifier(string $identifier): void
Sets the identifier this expression represents
string $identifier The identifier
voidsql(Cake\Database\ValueBinder $binder): string
Converts the Node into a SQL string fragment.
Cake\Database\ValueBinder $binder stringtraverse(Closure $callback): $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.
Closure $callback $thisHolds the identifier string
stringstring|null
© 2005–present 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/4.4/class-Cake.Database.Expression.IdentifierExpression.html