\Less_Cache

Utility for handling the generation and caching of css files

Summary

Methods
Properties
Constants
Get()
Regen()
Cache()
SetCacheDir()
CheckCacheDir()
CleanCache()
$cache_dir
No constants found
No protected methods found
No protected properties found
N/A
OutputFile()
CompiledName()
No private properties found
N/A

Properties

$cache_dir

$cache_dir : 

Type

Methods

Get()

Get(array  $less_files, array  $parser_options = array(), array  $modify_vars = array()) : string

Save and reuse the results of compiled less files.

The first call to Get() will generate css and save it. Subsequent calls to Get() with the same arguments will return the same css filename

Parameters

array $less_files

Array of .less files to compile

array $parser_options

Array of compiler options

array $modify_vars

Array of variables

Returns

string —

Name of the css file

Regen()

Regen(array  $less_files, array  $parser_options = array(), array  $modify_vars = array()) : string

Force the compiler to regenerate the cached css file

Parameters

array $less_files

Array of .less files to compile

array $parser_options

Array of compiler options

array $modify_vars

Array of variables

Returns

string —

Name of the css file

Cache()

Cache(  $less_files,   $parser_options = array()) 

Parameters

$less_files
$parser_options

SetCacheDir()

SetCacheDir(  $dir) 

Parameters

$dir

CheckCacheDir()

CheckCacheDir() 

CleanCache()

CleanCache() 

OutputFile()

OutputFile(  $compiled_name,   $parser_options) 

Parameters

$compiled_name
$parser_options

CompiledName()

CompiledName(  $files) 

Parameters

$files