class AssetContainer implements AssetContainerInterface

Asset Container

Properties

string $name The asset container name.
array $assets All of the added assets.

Methods

__construct(string $name = 'default')

Create a new asset container instance.

$this
setName(string $name)

Set name of container

string
getName()

Get name of container

addCss(string $name, string $source, array $dependencies = array(), array $attributes = array())

Add a CSS file to the registered assets.

addJs(string $name, string $source, array $dependencies = array(), array $attributes = array())

Add a JavaScript file to the registered assets.

Details

at line 41
AssetContainer __construct(string $name = 'default')

Create a new asset container instance.

Parameters

string $name

Return Value

AssetContainer

at line 52
$this setName(string $name)

Set name of container

Parameters

string $name

Return Value

$this

at line 63
string getName()

Get name of container

Return Value

string

at line 77
AssetContainerInterface addCss(string $name, string $source, array $dependencies = array(), array $attributes = array())

Add a CSS file to the registered assets.

Parameters

string $name
string $source
array $dependencies
array $attributes

Return Value

AssetContainerInterface

at line 97
AssetContainerInterface addJs(string $name, string $source, array $dependencies = array(), array $attributes = array())

Add a JavaScript file to the registered assets.

Parameters

string $name
string $source
array $dependencies
array $attributes

Return Value

AssetContainerInterface