phpBB API Documentation
Class

phpbb\template\assets_bag

class assets_bag

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
public add_stylesheet(asset $asset)

Add a css asset to the bag

Parameters

asset $asset

at line 39
public add_script(asset $asset)

Add a js script asset to the bag

Parameters

asset $asset

at line 49
public asset[] get_stylesheets()

Returns all css assets

Return Value

asset[]

at line 59
public asset[] get_scripts()

Returns all js assets

Return Value

asset[]

at line 69
public string get_stylesheets_content()

Returns the HTML code to includes all css assets

Return Value

string

at line 85
public string get_scripts_content()

Returns the HTML code to includes all js assets

Return Value

string