Class JavascriptHelper
Javascript Helper class for easy use of JavaScript.
JavascriptHelper encloses all methods needed while working with JavaScript.
- AppHelper
-
JavascriptHelper
Package: cake\cake\libs\view\helpers
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: The MIT License
Location: view/helpers/javascript.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: The MIT License
Location: view/helpers/javascript.php
Properties summary
-
$__scriptBuffer
publicstring
-
$_blockOptions
publicarray
Holds options passed to codeBlock(), saved for when block is dumped to output -
$_cacheAll
publicboolean
Indicates whether all generated JavaScript should be cached for later output -
$_cacheEvents
publicboolean
Indicates whether generated events should be cached for later output (can be written at the end of the page, in the , or to an external file).
-
$_cacheToFile
publicboolean
Indicates whether cached events should be written to an external file -
$_cachedEvents
publicarray
Caches events written by event() for output at the end of page execution -
$_rules
publicarray
Contains event rules attached with CSS selectors. Used with the event:Selectors JavaScript library.
-
$enabled
publicboolean
If true, automatically writes events to the end of a script or to an external JavaScript file at the end of page execution
-
$safe
publicboolean
Indicates whether