class vB5_Template_Javascript

Properties

static protected $instance
protected $pending
protected array $previouslyIncluded List of JS files that have already been included on this page load and removed from $this->pending.

Methods

static 
instance()

No description

register($files)

No description

resetPending()

No description

string
insertJsInclude(array $scripts)

Builds the Javascript links needed to include the passed JS files in the markup.

insertJs(string $content)

Inserts the JS links into the content

array
getDebugLog()

Returns the JS debugging information displayed in the footer.

Details

at line 26
static instance()

at line 37
register($files)

Parameters

$files

at line 50
resetPending()

at line 64
string insertJsInclude(array $scripts)

Builds the Javascript links needed to include the passed JS files in the markup.

Parameters

array $scripts Array of Javascript files

Return Value

string The complete Javascript links to insert into the markup.

at line 161
insertJs(string $content)

Inserts the JS links into the content

Parameters

string $content (reference) The page content (markup)

at line 217
array getDebugLog()

Returns the JS debugging information displayed in the footer.

Return Value

array Array of debugging information