class assets_bag

Properties

protected asset[] $stylesheets
protected asset[] $scripts

Methods

add_stylesheet(asset $asset)

Add a css asset to the bag

add_script(asset $asset)

Add a js script asset to the bag

asset[]
get_stylesheets()

Returns all css assets

asset[]
get_scripts()

Returns all js assets

string
get_stylesheets_content()

Returns the HTML code to includes all css assets

string
get_scripts_content()

Returns the HTML code to includes all js assets

Details

at line 29
add_stylesheet(asset $asset)

Add a css asset to the bag

Parameters

asset $asset

at line 39
add_script(asset $asset)

Add a js script asset to the bag

Parameters

asset $asset

at line 49
asset[] get_stylesheets()

Returns all css assets

Return Value

asset[]

at line 59
asset[] get_scripts()

Returns all js assets

Return Value

asset[]

at line 69
string get_stylesheets_content()

Returns the HTML code to includes all css assets

Return Value

string

at line 85
string get_scripts_content()

Returns the HTML code to includes all js assets

Return Value

string