Свойство | Тип | Описание | |
---|---|---|---|
$_invalidated | array | An array of invalidated output files. | |
$path | |||
$theme | |||
$timestamp |
Метод | Описание | |
---|---|---|
__construct ( array $timestamp, string $timestampPath, string $theme = null ) | Constructor. | |
buildCacheName ( string $build ) : string | Get the cache name a build. | |
buildFileName ( |
Get the final filename for a build. Resolves theme prefixes and timestamps. | |
clearTimestamps ( ) : void | Clear timestamps for assets. | |
config ( ) : array | Get the config options this object is using. | |
finalize ( |
Finalize a build after written to filesystem. | |
getTimestamp ( |
Get the last build timestamp for a given build. | |
invalidate ( |
Invalidate a build before re-generating the file. | |
outputDir ( |
Get the output dir | |
setTimestamp ( |
Set the timestamp for a build file. | |
write ( |
Writes content into a file |
Метод | Описание | |
---|---|---|
_readTimestamp ( ) : array | Read timestamps from either the fast cache, or the serialized file. | |
_timestampFile ( string $file, integer $time ) : string | Modify a file name and append in the timestamp | |
_writeTimestamp ( array $data ) : void | Write timestamps to either the fast cache, or the serialized file. |
protected _readTimestamp ( ) : array | ||
Результат | array | An array of timestamps for build files. |
protected _writeTimestamp ( array $data ) : void | ||
$data | array | An array of timestamps for build files. |
Результат | void |
public buildCacheName ( string $build ) : string | ||
$build | string | The build target name. |
Результат | string | The build cache name. |
public buildFileName ( |
||
$target | The build target name. | |
Результат | string | The build filename to cache on disk. |
public clearTimestamps ( ) : void | ||
Результат | void |
public getTimestamp ( |
||
$build | The build to get a timestamp for. | |
Результат | mixed | The last build time, or false. |
public invalidate ( |
||
$build | The build to invalidate. | |
Результат | void |
public setTimestamp ( |
||
$build | The name of the build to set a timestamp for. | |
$time | integer | The timestamp. |
Результат | void |
protected array $_invalidated | ||
Результат | array |