PHP Trait MiniAsset\Output\FreshTrait

Datei anzeigen Open project: markstory/mini-asset

Protected Properties

Property Type Description
$configTime integer The config file timestamp
$filterRegistry MiniAsset\Filter\FilterRegistry The filter registry to use.

Public Methods

Method Description
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.

Method Details

configTimestamp() public method

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.
return void

filterRegistry() public method

Set the filter registry
public filterRegistry ( FilterRegistry $filters ) : void
$filters MiniAsset\Filter\FilterRegistry The filter set to use.
return void

isFresh() public method

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.
return boolean

outputDir() abstract public method

Used to locate outputs when determining freshness.
abstract public outputDir ( AssetTarget $target ) : string
$target MiniAsset\AssetTarget
return string The path

Property Details

$configTime protected_oe property

The config file timestamp
protected int $configTime
return integer

$filterRegistry protected_oe property

The filter registry to use.
protected FilterRegistry,MiniAsset\Filter $filterRegistry
return MiniAsset\Filter\FilterRegistry