ILIAS
release_5-2 Revision v5.2.25-18-g3f80b82851
|
Loads SCSS files using the PHP implementation of scss, scssphp. More...
Public Member Functions | |
enableCompass ($enable=true) | |
isCompassEnabled () | |
setFormatter ($formatter) | |
setVariables (array $variables) | |
addVariable ($variable) | |
setImportPaths (array $paths) | |
addImportPath ($path) | |
registerFunction ($name, $callable) | |
filterLoad (AssetInterface $asset) | |
Filters an asset after it has been loaded. More... | |
filterDump (AssetInterface $asset) | |
Filters an asset just before it's dumped. More... | |
getChildren (AssetFactory $factory, $content, $loadPath=null) | |
Returns child assets. More... | |
Private Attributes | |
$compass = false | |
$importPaths = array() | |
$customFunctions = array() | |
$formatter | |
$variables = array() | |
Loads SCSS files using the PHP implementation of scss, scssphp.
Scss files are mostly compatible, but there are slight differences.
Bart van den Burg bart@ sams on-it .nl
Definition at line 28 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::addImportPath | ( | $path | ) |
Definition at line 79 of file ScssphpFilter.php.
References $path.
Assetic\Filter\ScssphpFilter::addVariable | ( | $variable | ) |
Definition at line 69 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::enableCompass | ( | $enable = true | ) |
Definition at line 36 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::filterDump | ( | AssetInterface | $asset | ) |
Filters an asset just before it's dumped.
AssetInterface | $asset | An asset |
Implements Assetic\Filter\FilterInterface.
Definition at line 120 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::filterLoad | ( | AssetInterface | $asset | ) |
Filters an asset after it has been loaded.
AssetInterface | $asset | An asset |
Implements Assetic\Filter\FilterInterface.
Definition at line 89 of file ScssphpFilter.php.
References $path, Assetic\Asset\AssetInterface\getContent(), Assetic\Asset\AssetInterface\getSourceDirectory(), and Assetic\Asset\AssetInterface\setContent().
Assetic\Filter\ScssphpFilter::getChildren | ( | AssetFactory | $factory, |
$content, | |||
$loadPath = null |
|||
) |
Returns child assets.
AssetFactory | $factory | The asset factory |
string | $content | The asset content |
string | $loadPath | An optional load path |
Implements Assetic\Filter\DependencyExtractorInterface.
Definition at line 124 of file ScssphpFilter.php.
References $file, $path, array, Assetic\Factory\AssetFactory\createAsset(), and Assetic\Util\CssUtils\extractImports().
Assetic\Filter\ScssphpFilter::isCompassEnabled | ( | ) |
Assetic\Filter\ScssphpFilter::registerFunction | ( | $name, | |
$callable | |||
) |
Definition at line 84 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::setFormatter | ( | $formatter | ) |
Definition at line 46 of file ScssphpFilter.php.
References Assetic\Filter\ScssphpFilter\$formatter, and array.
Assetic\Filter\ScssphpFilter::setImportPaths | ( | array | $paths | ) |
Definition at line 74 of file ScssphpFilter.php.
Assetic\Filter\ScssphpFilter::setVariables | ( | array | $variables | ) |
Definition at line 64 of file ScssphpFilter.php.
References Assetic\Filter\ScssphpFilter\$variables.
|
private |
Definition at line 30 of file ScssphpFilter.php.
Referenced by Assetic\Filter\ScssphpFilter\isCompassEnabled().
|
private |
Definition at line 32 of file ScssphpFilter.php.
|
private |
Definition at line 33 of file ScssphpFilter.php.
Referenced by Assetic\Filter\ScssphpFilter\setFormatter().
|
private |
Definition at line 31 of file ScssphpFilter.php.
|
private |
Definition at line 34 of file ScssphpFilter.php.
Referenced by Assetic\Filter\ScssphpFilter\setVariables().