LessCompiler
in package
implements
FilterInterface, HashableInterface, DependencyExtractorInterface
Less.php Compiler Filter Class used to compiled stylesheet less files, not using leafo!
Tags
Interfaces, Classes and Traits
- FilterInterface
- A filter manipulates an asset at load and dump.
- HashableInterface
- A filter can implement a hash function
- DependencyExtractorInterface
- A filter that knows how to extract dependencies.
Table of Contents
- $lastHash : mixed
- $presets : mixed
- filterDump() : mixed
- Filters an asset just before it's dumped.
- filterLoad() : mixed
- Filters an asset after it has been loaded.
- getChildren() : array<string|int, AssetInterface>
- Load children recusive
- hash() : string
- Generates a hash for the object
- hashAsset() : mixed
- setHash() : mixed
- setPresets() : mixed
Properties
$lastHash
protected
mixed
$lastHash
$presets
protected
mixed
$presets
= []
Methods
filterDump()
Filters an asset just before it's dumped.
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
-
An asset
Return values
mixed —filterLoad()
Filters an asset after it has been loaded.
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
-
An asset
Return values
mixed —getChildren()
Load children recusive
public
getChildren(AssetFactory $factory, mixed $content[, mixed $loadPath = null ]) : array<string|int, AssetInterface>
Parameters
- $factory : AssetFactory
-
The asset factory
- $content : mixed
-
The asset content
- $loadPath : mixed = null
-
An optional load path
Return values
array<string|int, AssetInterface> —Child assets
hash()
Generates a hash for the object
public
hash() : string
Return values
string —hashAsset()
public
hashAsset(mixed $asset, mixed $localPath) : mixed
Parameters
- $asset : mixed
- $localPath : mixed
Return values
mixed —setHash()
public
setHash(mixed $hash) : mixed
Parameters
- $hash : mixed
Return values
mixed —setPresets()
public
setPresets(array<string|int, mixed> $presets) : mixed
Parameters
- $presets : array<string|int, mixed>