\TemplateResources

Class collects resources for page.

Any including components can add to the page their own resources without having access to the application or template.

Summary

Methods
Properties
Constants
__construct()
add_css_file()
add_css_files()
get_css_files()
add_js_file()
add_js_files()
get_js_files()
clear()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$CSSFiles
$JSFiles
N/A

Properties

$CSSFiles

$CSSFiles : 

Custom CSS files to be included.

Type

$JSFiles

$JSFiles : 

Custom JS files to be included.

Type

Methods

__construct()

__construct() 

Constructor.

add_css_file()

add_css_file(  $CSSFile) 

Additing single CSS file.

Parameters

$CSSFile

add_css_files()

add_css_files(  $CSSFiles) 

Additing multyple CSS files.

Parameters

$CSSFiles

get_css_files()

get_css_files() 

Method returning added CSS files.

add_js_file()

add_js_file(  $JSFile) 

Additing single CSS file.

Parameters

$JSFile

add_js_files()

add_js_files(  $JSFiles) 

Additing multyple CSS files.

Parameters

$JSFiles

get_js_files()

get_js_files() 

Method returning added JS files.

clear()

clear() 

Method clears loaded resources.