Class Javascript
Provides helper methods for dealing with HTML content
- Html
- Javascript
Methods summary
public
|
|
public
string
|
|
public
string
|
#
getFiles( string $location )
Return the HTML used to create the script tags and load the set javascript |
public
string
|
|
public
|
#
setFile( string $file, string $location = "head", string $path = null, mixed $condition = null, mixed $hidden = true )
Sets the given javascript file into the structure view |
public
|
#
setInline( string $data, mixed $condition = null, mixed $hidden = true )
Sets the given javascript data to be appended to the list of javascript data. |
public
|
|
public
|
Methods inherited from Html
_()
,
addCondition()
,
buildAttributes()
,
concat()
,
hyperlink()
,
ifSet()
,
isUtf8()
,
safe()
Magic methods summary
Properties summary
private
array
|
$js_files |
#
A multi-dimensional array of locations and their respective javascript files |
private
array
|
$js_inline |
#
An array of inline javascript blocks |
private
string
|
$default_path |
#
The default path to use for javascript files |