Documentation

LessphpFilter
in package
implements DependencyExtractorInterface

Loads LESS files using the PHP implementation of less, lessphp.

Less files are mostly compatible, but there are slight differences.

Tags
link
http://leafo.net/lessphp/
author

David Buchmann david@liip.ch

author

Kris Wallsmith kris.wallsmith@gmail.com

Interfaces, Classes and Traits

DependencyExtractorInterface
A filter that knows how to extract dependencies.

Table of Contents

$loadPaths  : array<string|int, mixed>
Lessphp Load Paths
$customFunctions  : mixed
$formatter  : mixed
$options  : mixed
$preserveComments  : mixed
$presets  : mixed
addLoadPath()  : mixed
Adds a load path to the paths used by lessphp
filterDump()  : mixed
filterLoad()  : mixed
getChildren()  : array<string|int, AssetInterface>
Returns child assets.
registerFunction()  : mixed
setFormatter()  : mixed
setLoadPaths()  : mixed
Sets load paths used by lessphp
setOptions()  : mixed
setPreserveComments()  : mixed
setPresets()  : mixed

Properties

$loadPaths

Lessphp Load Paths

protected array<string|int, mixed> $loadPaths = array()

Methods

addLoadPath()

Adds a load path to the paths used by lessphp

public addLoadPath(string $path) : mixed
Parameters
$path : string

Load Path

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

Return values
array<string|int, AssetInterface>

Child assets

registerFunction()

public registerFunction(mixed $name, mixed $callable) : mixed
Parameters
$name : mixed
$callable : mixed
Return values
mixed

setFormatter()

public setFormatter(string $formatter) : mixed
Parameters
$formatter : string

One of "lessjs", "compressed", or "classic".

Return values
mixed

setLoadPaths()

Sets load paths used by lessphp

public setLoadPaths(array<string|int, mixed> $loadPaths) : mixed
Parameters
$loadPaths : array<string|int, mixed>

Load paths

Return values
mixed

setOptions()

public setOptions(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>
Return values
mixed

setPreserveComments()

public setPreserveComments(bool $preserveComments) : mixed
Parameters
$preserveComments : bool
Return values
mixed

setPresets()

public setPresets(array<string|int, mixed> $presets) : mixed
Parameters
$presets : array<string|int, mixed>
Return values
mixed

Search results