class ResponseAssetGroup (View source)

Properties

static protected $group
protected $providedAssetGroupUnmatched
protected $outputAssets

Methods

static 
get()

No description

__construct()

No description

init()

No description

addHeaderAsset($item)

Assets.

addFooterAsset($item)

Function responsible for adding footer items within the context of a view.

addOutputAsset(Asset $asset)

No description

addOutputAssetAt($item, $position)

No description

getAssetsToOutput()

Responsible for a number of things.

markAssetAsIncluded($assetType, $assetHandle = false)

Notes in the current request that a particular asset has already been provided.

requireAsset($assetType, $assetHandle = false)

Adds a required asset to this request. This asset will attempt to be output or included when a view is rendered.

getRequiredAssets()

Returns all required assets.

filterProvidedAssets($asset)

No description

getRequiredAssetsToOutput()

Returns only assets that are required but that aren't also in the providedAssetGroup.

Details

static get()

No description

__construct()

No description

init()

No description

addHeaderAsset($item)

Assets.

Parameters

$item

addFooterAsset($item)

Function responsible for adding footer items within the context of a view.

Parameters

$item

addOutputAsset(Asset $asset)

No description

Parameters

Asset $asset

protected addOutputAssetAt($item, $position)

No description

Parameters

$item
$position

getAssetsToOutput()

Responsible for a number of things.

  1. Gets the required assets and adds them to the output assets array (which also contains other assets we have specifically asked for.)
  2. Returns the assets with the non-post-process-able assets FIRST, in the order in which they were added, with post-processable assets grouped after. We also make sure to maintain the proper position.

markAssetAsIncluded($assetType, $assetHandle = false)

Notes in the current request that a particular asset has already been provided.

Parameters

$assetType
$assetHandle

requireAsset($assetType, $assetHandle = false)

Adds a required asset to this request. This asset will attempt to be output or included when a view is rendered.

Parameters

$assetType
$assetHandle

getRequiredAssets()

Returns all required assets.

protected filterProvidedAssets($asset)

No description

Parameters

$asset

getRequiredAssetsToOutput()

Returns only assets that are required but that aren't also in the providedAssetGroup.