Contains all the logic related to quoting identifiers in a Query object
Cake\Database\DriverThe driver instance used to do the identifier quoting
Constructor
A generic identifier quoting function used for various parts of the query
Quotes identifiers in expression objects implementing the field interface
Quotes identifiers in "order by" expression objects
Quotes the table name and columns for an insert query
Quotes both the table and alias for an array of joins as stored in a Query object
Quotes identifiers in "order by" expression objects
Quotes all identifiers in each of the clauses of a query
Quotes the table name for an update query
Iterates over each of the clauses in a query looking for identifiers and quotes them
Quotes identifiers inside expression objects
__construct(Cake\Database\Driver $driver)
Constructor
Cake\Database\Driver $driver The driver instance used to do the identifier quoting
_basicQuoter(array<string, mixed> $part): array<string, mixed>
A generic identifier quoting function used for various parts of the query
array<string, mixed> $part the part of the query to quote
array<string, mixed>_quoteComparison(Cake\Database\Expression\FieldInterface $expression): void
Quotes identifiers in expression objects implementing the field interface
Cake\Database\Expression\FieldInterface $expression The expression to quote.
void_quoteIdentifierExpression(Cake\Database\Expression\IdentifierExpression $expression): void
Quotes identifiers in "order by" expression objects
Cake\Database\Expression\IdentifierExpression $expression The identifiers to quote.
void_quoteInsert(Cake\Database\Query $query): void
Quotes the table name and columns for an insert query
Cake\Database\Query $query The insert query to quote.
void_quoteJoins(array $joins): array<string, array>
Quotes both the table and alias for an array of joins as stored in a Query object
array $joins The joins to quote.
array<string, array>_quoteOrderBy(Cake\Database\Expression\OrderByExpression $expression): void
Quotes identifiers in "order by" expression objects
Strings with spaces are treated as literal expressions and will not have identifiers quoted.
Cake\Database\Expression\OrderByExpression $expression The expression to quote.
void_quoteParts(Cake\Database\Query $query): void
Quotes all identifiers in each of the clauses of a query
Cake\Database\Query $query The query to quote.
void_quoteUpdate(Cake\Database\Query $query): void
Quotes the table name for an update query
Cake\Database\Query $query The update query to quote.
voidquote(Cake\Database\Query $query): Cake\Database\Query
Iterates over each of the clauses in a query looking for identifiers and quotes them
Cake\Database\Query $query The query to have its identifiers quoted
Cake\Database\QueryquoteExpression(Cake\Database\ExpressionInterface $expression): void
Quotes identifiers inside expression objects
Cake\Database\ExpressionInterface $expression The expression object to walk and quote.
voidThe driver instance used to do the identifier quoting
Cake\Database\Driver
© 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.IdentifierQuoter.html