PHP Трейт MiniAsset\Output\FreshTrait

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$configTime integer The config file timestamp
$filterRegistry MiniAsset\Filter\FilterRegistry The filter registry to use.

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

Метод Описание
configTimestamp ( integer $time ) : void Set the modified time of the configuration files.
filterRegistry ( FilterRegistry $filters ) : void Set the filter registry
isFresh ( AssetTarget $target ) : boolean Check to see if a cached build file is 'fresh'.
outputDir ( AssetTarget $target ) : string Get the output directory.

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

configTimestamp() публичный Метод

This value is used to determine if a build output is still 'fresh'.
public configTimestamp ( integer $time ) : void
$time integer The timestamp the configuration files were modified at.
Результат void

filterRegistry() публичный Метод

Set the filter registry
public filterRegistry ( FilterRegistry $filters ) : void
$filters MiniAsset\Filter\FilterRegistry The filter set to use.
Результат void

isFresh() публичный Метод

Fresh cached files have timestamps newer than all of the component files.
public isFresh ( AssetTarget $target ) : boolean
$target MiniAsset\AssetTarget The target file being built.
Результат boolean

outputDir() абстрактный публичный Метод

Used to locate outputs when determining freshness.
abstract public outputDir ( AssetTarget $target ) : string
$target MiniAsset\AssetTarget
Результат string The path

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

$configTime защищенное свойство

The config file timestamp
protected int $configTime
Результат integer

$filterRegistry защищенное свойство

The filter registry to use.
protected FilterRegistry,MiniAsset\Filter $filterRegistry
Результат MiniAsset\Filter\FilterRegistry