class AssetList (View source)

Properties

static private null|AssetList $loc
array $assets
AssetGroup[] $assetGroups

Methods

getRegisteredAssets()

No description

static AssetList
getInstance()

No description

register(string $assetType, string $assetHandle, string $filename, array $args = array(), bool $pkg = false)

No description

registerMultiple(array $assets)

No description

registerAsset(Asset $asset)

No description

registerGroup(string $assetGroupHandle, array $assetHandles, bool $customClass = false)

No description

registerGroupMultiple(array $asset_groups)

No description

getAsset(string $assetType, string $assetHandle)

No description

getAssetGroup(string $assetGroupHandle)

No description

Details

getRegisteredAssets()

AssetGroup[] getRegisteredAssetGroups()

Return Value

AssetGroup[]

static AssetList getInstance()

Return Value

AssetList

Asset register(string $assetType, string $assetHandle, string $filename, array $args = array(), bool $pkg = false)

Parameters

string $assetType
string $assetHandle
string $filename
array $args
bool $pkg

Return Value

Asset

registerMultiple(array $assets)

Parameters

array $assets

registerAsset(Asset $asset)

Parameters

Asset $asset

registerGroup(string $assetGroupHandle, array $assetHandles, bool $customClass = false)

Parameters

string $assetGroupHandle
array $assetHandles
bool $customClass

registerGroupMultiple(array $asset_groups)

Parameters

array $asset_groups

Asset getAsset(string $assetType, string $assetHandle)

Parameters

string $assetType
string $assetHandle

Return Value

Asset

AssetGroup getAssetGroup(string $assetGroupHandle)

Parameters

string $assetGroupHandle

Return Value

AssetGroup