PHP Class AssetManager\Asset\AggregateAsset

Inheritance: extends Assetic\Asset\BaseAsset
Show file Open project: rwoverdijk/assetmanager

Public Properties

Property Type Description
$mimetype

Public Methods

Method Description
__construct ( array $content = [], array $filters = [], string $sourceRoot = null, string $sourcePath = null ) Constructor.
getLastModified ( ) : integer | null get last modified value from asset
load ( Assetic\Filter\FilterInterface $additionalFilter = null ) load asset
setLastModified ( integer $lastModified ) set last modified value of asset

Private Methods

Method Description
processContent ( string $content ) Loop through assets and merge content

Method Details

__construct() public method

Constructor.
public __construct ( array $content = [], array $filters = [], string $sourceRoot = null, string $sourcePath = null )
$content array The array of assets to be merged
$filters array Filters for the asset
$sourceRoot string The source asset root directory
$sourcePath string The source asset path

getLastModified() public method

get last modified value from asset
public getLastModified ( ) : integer | null
return integer | null

load() public method

load asset
public load ( Assetic\Filter\FilterInterface $additionalFilter = null )
$additionalFilter Assetic\Filter\FilterInterface

setLastModified() public method

this is useful for cache mechanism detection id file has changed
public setLastModified ( integer $lastModified )
$lastModified integer

Property Details

$mimetype public property

public $mimetype