Skip to content
This repository
Browse code

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
Mark Story authored August 01, 2009

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  cake/libs/view/helpers/javascript.php
9  cake/libs/view/helpers/javascript.php
@@ -572,6 +572,15 @@ function includeScript($script = "", $options = array()) {
572 572
  * Generates a JavaScript object in JavaScript Object Notation (JSON)
573 573
  * from an array
574 574
  *
  575
+ * ### Options
  576
+ *
  577
+ * - block - Wraps the return value in a script tag if true. Default is false
  578
+ * - prefix - Prepends the string to the returned data. Default is ''
  579
+ * - postfix - Appends the string to the returned data. Default is ''
  580
+ * - stringKeys - A list of array keys to be treated as a string.
  581
+ * - quoteKeys - If false treats $stringKeys as a list of keys **not** to be quoted. Default is true.
  582
+ * - q - The type of quote to use. Default is "'"
  583
+ *
575 584
  * @param array $data Data to be converted
576 585
  * @param array $options Set of options: block, prefix, postfix, stringKeys, quoteKeys, q
577 586
  * @param string $prefix DEPRECATED, use $options['prefix'] instead. Prepends the string to the returned data

0 notes on commit 878f336

Please sign in to comment.
Something went wrong with that request. Please try again.