ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
CSS Utils. More...
Static Public Member Functions | |
static | filterReferences ($content, $callback) |
Filters all references – url() and "@import" – through a callable. More... | |
static | filterUrls ($content, $callback) |
Filters all CSS url()'s through a callable. More... | |
static | filterImports ($content, $callback, $includeUrl=true) |
Filters all CSS imports through a callable. More... | |
static | filterIEFilters ($content, $callback) |
Filters all IE filters (AlphaImageLoader filter) through a callable. More... | |
static | filterCommentless ($content, $callback) |
Filters each non-comment part through a callable. More... | |
static | extractImports ($content) |
Extracts all references from the supplied CSS content. More... | |
Data Fields | |
const | REGEX_URLS = '/url\((["\']?)(?P<url>.*?)(\\1)\)/' |
const | REGEX_IMPORTS = '/@import (?:url\()?(\'|"|)(?P<url>[^\'"\)\n\r]*)\1\)?;?/' |
const | REGEX_IMPORTS_NO_URLS = '/@import (?!url\()(\'|"|)(?P<url>[^\'"\)\n\r]*)\1;?/' |
const | REGEX_IE_FILTERS = '/src=(["\']?)(?P<url>.*?)\\1/' |
const | REGEX_COMMENTS = '/(\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)/' |
Private Member Functions | |
__construct () | |
CSS Utils.
Definition at line 19 of file CssUtils.php.
|
finalprivate |
Definition at line 135 of file CssUtils.php.
|
static |
Extracts all references from the supplied CSS content.
string | $content | The CSS content |
Definition at line 125 of file CssUtils.php.
References array.
Referenced by Assetic\Filter\Sass\BaseSassFilter\addLoadPath(), Assetic\Filter\ScssphpFilter\getChildren(), Assetic\Filter\LessphpFilter\getChildren(), and Assetic\Filter\LessFilter\getChildren().
|
static |
Filters each non-comment part through a callable.
string | $content | The CSS |
callable | $callback | A PHP callable |
Definition at line 104 of file CssUtils.php.
References $result.
|
static |
Filters all IE filters (AlphaImageLoader filter) through a callable.
string | $content | The CSS |
callable | $callback | A PHP callable |
Definition at line 87 of file CssUtils.php.
Referenced by Assetic\Filter\BaseCssFilter\filterIEFilters().
|
static |
Filters all CSS imports through a callable.
string | $content | The CSS |
callable | $callback | A PHP callable |
Boolean | $includeUrl | Whether to include url() in the pattern |
Definition at line 70 of file CssUtils.php.
Referenced by Assetic\Filter\BaseCssFilter\filterImports().
|
static |
Filters all references – url() and "@import" – through a callable.
string | $content | The CSS |
callable | $callback | A PHP callable |
Definition at line 35 of file CssUtils.php.
Referenced by Assetic\Filter\BaseCssFilter\filterReferences().
|
static |
Filters all CSS url()'s through a callable.
string | $content | The CSS |
callable | $callback | A PHP callable |
Definition at line 52 of file CssUtils.php.
Referenced by Assetic\Filter\BaseCssFilter\filterUrls().
const Assetic\Util\CssUtils::REGEX_COMMENTS = '/(\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)/' |
Definition at line 25 of file CssUtils.php.
const Assetic\Util\CssUtils::REGEX_IE_FILTERS = '/src=(["\']?)(?P<url>.*?)\\1/' |
Definition at line 24 of file CssUtils.php.
const Assetic\Util\CssUtils::REGEX_IMPORTS = '/@import (?:url\()?(\'|"|)(?P<url>[^\'"\)\n\r]*)\1\)?;?/' |
Definition at line 22 of file CssUtils.php.
const Assetic\Util\CssUtils::REGEX_IMPORTS_NO_URLS = '/@import (?!url\()(\'|"|)(?P<url>[^\'"\)\n\r]*)\1;?/' |
Definition at line 23 of file CssUtils.php.
const Assetic\Util\CssUtils::REGEX_URLS = '/url\((["\']?)(?P<url>.*?)(\\1)\)/' |
Definition at line 21 of file CssUtils.php.