CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.10 Red Velvet API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 3.10
      • 5.2
      • 5.1
      • 5.0
      • 4.6
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Global
  • Cake
    • Auth
    • Cache
    • Collection
    • Command
    • Console
    • Controller
    • Core
    • Database
      • Dialect
      • Driver
      • Exception
      • Expression
      • Log
      • Retry
      • Schema
      • Statement
      • Type
    • Datasource
    • Error
    • Event
    • Filesystem
    • Form
    • Http
    • I18n
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • Shell
    • TestSuite
    • Utility
    • Validation
    • View

Class IdentifierQuoter

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

Namespace: Cake\Database

Property Summary

  • $_driver protected
    Cake\Database\Driver

    The driver instance used to do the identifier quoting

Method Summary

  • __construct() public

    Constructor

  • _basicQuoter() protected

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

  • _quoteComparison() protected

    Quotes identifiers in expression objects implementing the field interface

  • _quoteIdentifierExpression() protected

    Quotes identifiers in "order by" expression objects

  • _quoteInsert() protected

    Quotes the table name and columns for an insert query

  • _quoteJoins() protected

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

  • _quoteOrderBy() protected

    Quotes identifiers in "order by" expression objects

  • _quoteParts() protected

    Quotes all identifiers in each of the clauses of a query

  • _quoteUpdate() protected

    Quotes the table name for an update query

  • quote() public

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

  • quoteExpression() public

    Quotes identifiers inside expression objects

Method Detail

__construct() ¶ public

__construct(Cake\Database\Driver $driver)

Constructor

Parameters
Cake\Database\Driver $driver

The driver instance used to do the identifier quoting

_basicQuoter() ¶ protected

_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

_quoteComparison() ¶ protected

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

Returns
void

_quoteIdentifierExpression() ¶ protected

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

Quotes identifiers in "order by" expression objects

Parameters
Cake\Database\Expression\IdentifierExpression $expression

The identifiers to quote.

Returns
void

_quoteInsert() ¶ protected

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

Returns
void

_quoteJoins() ¶ protected

_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

_quoteOrderBy() ¶ protected

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

Returns
void

_quoteParts() ¶ protected

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

Returns
void

_quoteUpdate() ¶ protected

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

Quotes the table name for an update query

Parameters
Cake\Database\Query $query

The update query to quote.

Returns
void

quote() ¶ public

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() ¶ public

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

Quotes identifiers inside expression objects

Parameters
Cake\Database\ExpressionInterface $expression

The expression object to walk and quote.

Returns
void

Property Detail

$_driver ¶ protected

The driver instance used to do the identifier quoting

Type
Cake\Database\Driver
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs