Settings
in package
Parser settings class.
Configure parser behaviour here.
Table of Contents
- beStrict() : self
- Configures the parser to choke on invalid rules.
- create() : self
- withDefaultCharset() : self
- Sets the charset to be used if the CSS does not contain an `@charset` declaration.
- withLenientParsing() : self
- Configures whether the parser should silently ignore invalid rules.
- withMultibyteSupport() : self
- Enables/disables multi-byte string support.
- __construct() : mixed
Methods
beStrict()
Configures the parser to choke on invalid rules.
public
beStrict() : self
Return values
self — fluent interfacecreate()
public
static create() : self
Return values
self — new instancewithDefaultCharset()
Sets the charset to be used if the CSS does not contain an `@charset` declaration.
public
withDefaultCharset(string $sDefaultCharset) : self
Parameters
- $sDefaultCharset : string
Return values
self — fluent interfacewithLenientParsing()
Configures whether the parser should silently ignore invalid rules.
public
withLenientParsing([bool $bLenientParsing = true ]) : self
Parameters
- $bLenientParsing : bool = true
Return values
self — fluent interfacewithMultibyteSupport()
Enables/disables multi-byte string support.
public
withMultibyteSupport([bool $bMultibyteSupport = true ]) : self
If true (mbstring extension must be enabled), will use (slower) mb_strlen, mb_convert_case, mb_substr
and mb_strpos functions. Otherwise, the normal (ASCII-Only) functions will be used.
Parameters
- $bMultibyteSupport : bool = true
Return values
self — fluent interface__construct()
private
__construct() : mixed
