PHP 트레잇 MiniAsset\Output\FreshTrait

파일 보기 프로젝트 열기: markstory/mini-asset

보호된 프로퍼티들

프로퍼티 타입 설명
$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