Class flBufferCode
flBufferCode Class
Buffers JavaScript and CSS for output in the applications view.
Inline code is grouped if possible.
Package: fusionLib
Copyright:
Copyright (c) 2012 - 2014 fusionLib. All rights reserved.
Located at system/libs/Buffer/flBufferCode.php
Methods summary
public static
|
#
useDevJS( boolean $useDevJS = true )
Flag if to use development JavaScript for output or production.
Flag if to use development JavaScript for output or production.
Parameters
- $useDevJS
- true to enable development JS output or false for production.
|
public
|
|
public
flBufferCode
|
#
useJQuery( boolean $use = true )
Flags to use jQuery rather than fusionLibs own JavaScript libraries.
Flags to use jQuery rather than fusionLibs own JavaScript libraries.
Parameters
- $use
- true to use jQuery or false for fusionLib.
Returns
|
public
flBufferCode
|
#
clear( )
Clear the internal buffers.
Clear the internal buffers.
Returns
|
public
flBufferCode
|
#
requireCore( )
Flags to use the core JavaScript library.
Flags to use the core JavaScript library.
Returns
|
public
flBufferCode
|
#
requireValidator( )
Flags to use validation library.
Flags to use validation library.
Returns
|
public
flBufferCode
|
#
bufferCSS( string $css, string $media = 'all' )
Buffer the CSS.
Parameters
- $css
- A CSS file or inline CSS.
- $media
- Optional media type.
Returns
|
public
flBufferCode
|
#
bufferHeadJS( string $js )
Buffer JavaScript for the head section.
Buffer JavaScript for the head section.
Parameters
- $js
- A JavaScript file or inline JavaScript.
Returns
|
public
flBufferCode
|
#
bufferBodyJS( string $js )
Buffer JavaScript for the body.
Buffer JavaScript for the body.
Parameters
- $js
- A JavaScript file or inline JavaScript.
Returns
|
public
flBufferCode
|
#
bufferReadyJS( string $js )
Buffer JavaScript for the body ready event.
Buffer JavaScript for the body ready event.
Parameters
Returns
|
public
flBufferCode
|
#
setJSIgnoreList( array $ignore )
Set the list of JavaScript files to ignore.
Set the list of JavaScript files to ignore.
Parameters
- $ignore
- List of JS files to ignore.
Returns
|
public
flBufferCode
|
#
setCSSIgnoreList( array $ignore )
Set the list of CSS files to ignore.
Set the list of CSS files to ignore.
Parameters
- $ignore
- List of CSS files to ignore.
Returns
|
public
array
|
#
getJSFileList( )
Get the list of JavaScript files loaded.
Get the list of JavaScript files loaded.
Returns
array List of files.
|
public
array
|
#
getCSSFileList( )
Get the list of CSS files loaded.
Get the list of CSS files loaded.
Returns
array List of files.
|
public
string
|
#
getHeadBuffer( )
Get the head CSS and JavaScript if any.
Get the head CSS and JavaScript if any.
Returns
string The CSS and JS to place in the head.
|
public
string
|
#
getBodyBuffer( )
Get the body JavaScript if any.
Get the body JavaScript if any.
Returns
string The JS for the body.
|
public
string
|
#
getSysJSURI( )
Get the URI of the system JavaScript folder.
Get the URI of the system JavaScript folder.
Returns
string The system JS URI.
|
public
flBufferCode
|
#
includeJQuery( )
Include jQuery in the output.
Include jQuery in the output.
Returns
|