Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 878f3367d440091cd6d08900baec405dc80e8cc7 1 parent 76e50ef
@markstory markstory authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 cake/libs/view/helpers/javascript.php
View
9 cake/libs/view/helpers/javascript.php
@@ -572,6 +572,15 @@ function includeScript($script = "", $options = array()) {
* 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
Please sign in to comment.
Something went wrong with that request. Please try again.