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.
- Cake\Database\Expression\IdentifierExpression implements Cake\Database\ExpressionInterface
Namespace: Cake\Database\Expression
See: \Cake\Database\Query::identifier()
Location: Database/Expression/IdentifierExpression.php
See: \Cake\Database\Query::identifier()
Location: Database/Expression/IdentifierExpression.php
Properties summary
-
$_identifier
protectedstring
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
This method is a no-op, this is a leaf type of expression, hence there is nothing to traverse
Method Detail
__construct() public ¶
__construct( string $identifier )
Constructor
Parameters
- string $identifier
- The identifier this expression represents
getIdentifier() public ¶
getIdentifier( )
Returns the identifier this expression represents
Returns
string
setIdentifier() public ¶
setIdentifier( string $identifier )
Sets the identifier this expression represents
Parameters
- string $identifier
- The identifier
sql() public ¶
sql( Cake\Database\ValueBinder $generator )
Converts the expression to its string representation
Parameters
- Cake\Database\ValueBinder $generator
- Placeholder generator object
Returns
string
Implementation of
traverse() public ¶
traverse( callable $callable )
This method is a no-op, this is a leaf type of expression, hence there is nothing to traverse
Parameters
- callable $callable
- The callable to traverse with.