Class IdentifierExpression
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.
Property Summary
-
$_identifier protected
string
Holds the identifier string
Method Summary
-
__construct() public
Constructor
-
getIdentifier() public
Returns the identifier this expression represents
-
setIdentifier() public
Sets the identifier this expression represents
-
sql() public
Converts the expression to its string representation
-
traverse() public
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.
Method Detail
__construct() ¶ public
__construct(string $identifier)
Constructor
Parameters
-
string
$identifier The identifier this expression represents
getIdentifier() ¶ public
getIdentifier(): string
Returns the identifier this expression represents
Returns
string
setIdentifier() ¶ public
setIdentifier(string $identifier): void
Sets the identifier this expression represents
Parameters
-
string
$identifier The identifier
Returns
void
sql() ¶ public
sql(Cake\Database\ValueBinder $generator): string
Converts the expression to its string representation
Parameters
-
Cake\Database\ValueBinder
$generator Placeholder generator object
Returns
string
traverse() ¶ public
traverse(callable $visitor): void
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.
Parameters
-
callable
$visitor
Returns
void