mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating API docs related to DboSource::$cacheMethods. Fixes #870
This commit is contained in:
parent
735ac17b85
commit
e023350af5
1 changed files with 14 additions and 2 deletions
|
@ -53,7 +53,10 @@ class DboSource extends DataSource {
|
|||
var $alias = 'AS ';
|
||||
|
||||
/**
|
||||
* Caches result from query parsing operations
|
||||
* Caches result from query parsing operations. Cached results for both DboSource::name() and
|
||||
* DboSource::conditions() will be stored here. Method caching uses `crc32()` which is
|
||||
* fast but can collisions more easily than other hashing algorithms. If you have problems
|
||||
* with collisions, set DboSource::$cacheMethods to false.
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
|
@ -512,7 +515,12 @@ class DboSource extends DataSource {
|
|||
* Returns a quoted name of $data for use in an SQL statement.
|
||||
* Strips fields out of SQL functions before quoting.
|
||||
*
|
||||
* @param string $data
|
||||
* Results of this method are stored in a memory cache. This improves performance, but
|
||||
* because the method uses a simple hashing algorithm it can infrequently have collisions.
|
||||
* Setting DboSource::$cacheMethods to false will disable the memory cache.
|
||||
*
|
||||
* @param mixed $data Either a string with a column to quote. An array of columns to quote or an
|
||||
* object from DboSource::expression() or DboSource::identifier()
|
||||
* @return string SQL field
|
||||
* @access public
|
||||
*/
|
||||
|
@ -2050,6 +2058,10 @@ class DboSource extends DataSource {
|
|||
* conditions are provided those conditions will be parsed and quoted. If a boolean
|
||||
* is given it will be integer cast as condition. Null will return 1 = 1.
|
||||
*
|
||||
* Results of this method are stored in a memory cache. This improves performance, but
|
||||
* because the method uses a simple hashing algorithm it can infrequently have collisions.
|
||||
* Setting DboSource::$cacheMethods to false will disable the memory cache.
|
||||
*
|
||||
* @param mixed $conditions Array or string of conditions, or any value.
|
||||
* @param boolean $quoteValues If true, values should be quoted
|
||||
* @param boolean $where If true, "WHERE " will be prepended to the return value
|
||||
|
|
Loading…
Reference in a new issue