mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating doc block on JavascriptHelper::object(). Thanks BrendonKox. Fixes #6540.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8266 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
76e50ef625
commit
878f3367d4
1 changed files with 9 additions and 0 deletions
|
@ -572,6 +572,15 @@ class JavascriptHelper extends AppHelper {
|
|||
* Generates a JavaScript object in JavaScript Object Notation (JSON)
|
||||
* from an array
|
||||
*
|
||||
* ### Options
|
||||
*
|
||||
* - block - Wraps the return value in a script tag if true. Default is false
|
||||
* - prefix - Prepends the string to the returned data. Default is ''
|
||||
* - postfix - Appends the string to the returned data. Default is ''
|
||||
* - stringKeys - A list of array keys to be treated as a string.
|
||||
* - quoteKeys - If false treats $stringKeys as a list of keys **not** to be quoted. Default is true.
|
||||
* - q - The type of quote to use. Default is "'"
|
||||
*
|
||||
* @param array $data Data to be converted
|
||||
* @param array $options Set of options: block, prefix, postfix, stringKeys, quoteKeys, q
|
||||
* @param string $prefix DEPRECATED, use $options['prefix'] instead. Prepends the string to the returned data
|
||||
|
|
Loading…
Reference in a new issue