LessFilter
extends BaseNodeFilter
in package
implements
DependencyExtractorInterface
Loads LESS files.
Tags
Interfaces, Classes and Traits
- DependencyExtractorInterface
- A filter that knows how to extract dependencies.
Table of Contents
- $loadPaths : array<string|int, mixed>
- Load Paths
- $nodeBin : mixed
- $nodePaths : mixed
- $parserOptions : array<string|int, mixed>
- $timeout : mixed
- $treeOptions : array<string|int, mixed>
- __construct() : mixed
- Constructor.
- addLoadPath() : mixed
- Adds a path where less will search for includes
- addNodePath() : mixed
- addParserOption() : mixed
- addTreeOption() : mixed
- filterDump() : mixed
- filterLoad() : mixed
- getChildren() : array<string|int, AssetInterface>
- Returns child assets.
- getNodePaths() : mixed
- setCompress() : mixed
- setLoadPaths() : mixed
- setNodePaths() : mixed
- setTimeout() : mixed
- Set the process timeout.
- createProcessBuilder() : ProcessBuilder
- Creates a new process builder.
- mergeEnv() : mixed
Properties
$loadPaths
Load Paths
protected
array<string|int, mixed>
$loadPaths
= array()
A list of paths which less will search for includes.
$nodeBin
private
mixed
$nodeBin
$nodePaths
private
mixed
$nodePaths
= array()
$parserOptions
private
array<string|int, mixed>
$parserOptions
$timeout
private
mixed
$timeout
$treeOptions
private
array<string|int, mixed>
$treeOptions
Methods
__construct()
Constructor.
public
__construct([string $nodeBin = '/usr/bin/node' ][, array<string|int, mixed> $nodePaths = array() ]) : mixed
Parameters
- $nodeBin : string = '/usr/bin/node'
-
The path to the node binary
- $nodePaths : array<string|int, mixed> = array()
-
An array of node paths
Return values
mixed —addLoadPath()
Adds a path where less will search for includes
public
addLoadPath(string $path) : mixed
Parameters
- $path : string
-
Load path (absolute)
Return values
mixed —addNodePath()
public
addNodePath(mixed $nodePath) : mixed
Parameters
- $nodePath : mixed
Return values
mixed —addParserOption()
public
addParserOption(string $code, string $value) : mixed
Parameters
- $code : string
- $value : string
Return values
mixed —addTreeOption()
public
addTreeOption(string $code, string $value) : mixed
Parameters
- $code : string
- $value : string
Return values
mixed —filterDump()
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —filterLoad()
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —getChildren()
Returns child assets.
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
Tags
Return values
array<string|int, AssetInterface> —Child assets
getNodePaths()
public
getNodePaths() : mixed
Return values
mixed —setCompress()
public
setCompress(bool $compress) : mixed
Parameters
- $compress : bool
Return values
mixed —setLoadPaths()
public
setLoadPaths(array<string|int, mixed> $loadPaths) : mixed
Parameters
- $loadPaths : array<string|int, mixed>
Return values
mixed —setNodePaths()
public
setNodePaths(array<string|int, mixed> $nodePaths) : mixed
Parameters
- $nodePaths : array<string|int, mixed>
Return values
mixed —setTimeout()
Set the process timeout.
public
setTimeout(int $timeout) : mixed
Parameters
- $timeout : int
-
The timeout for the process
Return values
mixed —createProcessBuilder()
Creates a new process builder.
protected
createProcessBuilder([array<string|int, mixed> $arguments = array() ]) : ProcessBuilder
Parameters
- $arguments : array<string|int, mixed> = array()
-
An optional array of arguments
Return values
ProcessBuilder —A new process builder
mergeEnv()
protected
mergeEnv(ProcessBuilder $pb) : mixed
Parameters
- $pb : ProcessBuilder