PHP Class Minify_LessCssSource, minify

Inheritance: extends Minify_Source
Mostra file Open project: mrclay/minify

Public Methods

Method Description
__construct ( array $spec, Minify_CacheInterface $cache )
getContent ( ) : string Get content
getLastModified ( ) : integer Get last modified of all parsed files

Private Methods

Method Description
getCache ( ) : array Get lessphp cache object
getCacheId ( string $prefix = 'minify' ) : string Make a unique cache id for for this source.
getCompiler ( ) : lessc Get instance of less compiler
getMaxLastModified ( $cache ) : integer Calculate maximum last modified of all files, as the 'updated' timestamp in cache is not the same as file last modified timestamp:

Method Details

__construct() public method

public __construct ( array $spec, Minify_CacheInterface $cache )
$spec array
$cache Minify_CacheInterface

getContent() public method

Get content
public getContent ( ) : string
return string

getLastModified() public method

Get last modified of all parsed files
public getLastModified ( ) : integer
return integer