PHP Класс AssetManager\Asset\AggregateAsset

Наследование: extends Assetic\Asset\BaseAsset
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$mimetype

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
processContent ( string $content ) Loop through assets and merge content

Описание методов

__construct() публичный метод

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() публичный метод

get last modified value from asset
public getLastModified ( ) : integer | null
Результат integer | null

load() публичный метод

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

setLastModified() публичный метод

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

Описание свойств

$mimetype публичное свойство

public $mimetype