Property | Type | Description | |
---|---|---|---|
$_invalidated | array | An array of invalidated output files. | |
$path | |||
$theme | |||
$timestamp |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_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 | ||
return | array | An array of timestamps for build files. |
protected _writeTimestamp ( array $data ) : void | ||
$data | array | An array of timestamps for build files. |
return | void |
public buildCacheName ( string $build ) : string | ||
$build | string | The build target name. |
return | string | The build cache name. |
public buildFileName ( |
||
$target | The build target name. | |
return | string | The build filename to cache on disk. |
public clearTimestamps ( ) : void | ||
return | void |
public getTimestamp ( |
||
$build | The build to get a timestamp for. | |
return | mixed | The last build time, or false. |
public invalidate ( |
||
$build | The build to invalidate. | |
return | void |
public setTimestamp ( |
||
$build | The name of the build to set a timestamp for. | |
$time | integer | The timestamp. |
return | void |
protected array $_invalidated | ||
return | array |