\Cake\DatabaseIdentifierQuoter

Contains all the logic related to quoting identifiers in a Query object

Summary

Methods
Properties
Constants
__construct()
quote()
quoteExpression()
No public properties found
No constants found
_quoteParts()
_basicQuoter()
_quoteJoins()
_quoteInsert()
_quoteUpdate()
_quoteComparison()
_quoteOrderBy()
_quoteIdentifierExpression()
$_driver
N/A
No private methods found
No private properties found
N/A

Properties

$_driver

$_driver : \Cake\Database\Driver

The driver instance used to do the identifier quoting

Type

\Cake\Database\Driver

Methods

__construct()

__construct(\Cake\Database\Driver  $driver) 

Constructor

Parameters

\Cake\Database\Driver $driver

The driver instance used to do the identifier quoting

quote()

quote(\Cake\Database\Query  $query) : \Cake\Database\Query

Iterates over each of the clauses in a query looking for identifiers and quotes them

Parameters

\Cake\Database\Query $query

The query to have its identifiers quoted

Returns

\Cake\Database\Query

quoteExpression()

quoteExpression(\Cake\Database\ExpressionInterface  $expression) : void

Quotes identifiers inside expression objects

Parameters

\Cake\Database\ExpressionInterface $expression

The expression object to walk and quote.

_quoteParts()

_quoteParts(\Cake\Database\Query  $query) : void

Quotes all identifiers in each of the clauses of a query

Parameters

\Cake\Database\Query $query

The query to quote.

_basicQuoter()

_basicQuoter(array  $part) : array

A generic identifier quoting function used for various parts of the query

Parameters

array $part

the part of the query to quote

Returns

array

_quoteJoins()

_quoteJoins(array  $joins) : array

Quotes both the table and alias for an array of joins as stored in a Query object

Parameters

array $joins

The joins to quote.

Returns

array

_quoteInsert()

_quoteInsert(\Cake\Database\Query  $query) : void

Quotes the table name and columns for an insert query

Parameters

\Cake\Database\Query $query

The insert query to quote.

_quoteUpdate()

_quoteUpdate(\Cake\Database\Query  $query) : void

Quotes the table name for an update query

Parameters

\Cake\Database\Query $query

The update query to quote.

_quoteComparison()

_quoteComparison(\Cake\Database\Expression\FieldInterface  $expression) : void

Quotes identifiers in expression objects implementing the field interface

Parameters

\Cake\Database\Expression\FieldInterface $expression

The expression to quote.

_quoteOrderBy()

_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.

Parameters

\Cake\Database\Expression\OrderByExpression $expression

The expression to quote.

_quoteIdentifierExpression()

_quoteIdentifierExpression(\Cake\Database\Expression\IdentifierExpression  $expression) : void

Quotes identifiers in "order by" expression objects

Parameters

\Cake\Database\Expression\IdentifierExpression $expression

The identifiers to quote.