cakephp-1.3 > JsHelper :: writeBuffer()
JsHelper
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
writeBuffer
line:205 at
/cake/libs/view/helpers/js.php
Writes all Javascript generated so far to a code block or
caches them to a file and returns a linked script. If no scripts have been
buffered this method will return null. If the request is an XHR(ajax) request
onDomReady will be set to false. As the dom is already 'ready'.
Method
(mixed)
writeBuffer
($options = array())
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$options | array | optional options for the code block | array() |
Return
mixedComment
Writes all Javascript generated so far to a code block or
caches them to a file and returns a linked script. If no scripts have been
buffered this method will return null. If the request is an XHR(ajax) request
onDomReady will be set to false. As the dom is already 'ready'.
### Options
- `inline` - Set to true to have scripts output as a script block inline
if `cache` is also true, a script link tag will be generated. (default true)
- `cache` - Set to true to have scripts cached to a file and linked in (default false)
- `clear` - Set to false to prevent script cache from being cleared (default true)
- `onDomReady` - wrap cached scripts in domready event (default true)
- `safe` - if an inline block is generated should it be wrapped in <![CDATA[ ... ]]> (default true)
@param array $options options for the code block
@return mixed Completed javascript tag if there are scripts, if there are no buffered
scripts null will be returned.
@access public
caches them to a file and returns a linked script. If no scripts have been
buffered this method will return null. If the request is an XHR(ajax) request
onDomReady will be set to false. As the dom is already 'ready'.
### Options
- `inline` - Set to true to have scripts output as a script block inline
if `cache` is also true, a script link tag will be generated. (default true)
- `cache` - Set to true to have scripts cached to a file and linked in (default false)
- `clear` - Set to false to prevent script cache from being cleared (default true)
- `onDomReady` - wrap cached scripts in domready event (default true)
- `safe` - if an inline block is generated should it be wrapped in <![CDATA[ ... ]]> (default true)
@param array $options options for the code block
@return mixed Completed javascript tag if there are scripts, if there are no buffered
scripts null will be returned.
@access public