Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Sabberworm\CSS\Settings Class Reference

Public Member Functions

 beStrict ()
 
 withDefaultCharset ($sDefaultCharset)
 
 withLenientParsing ($bLenientParsing=true)
 
 withMultibyteSupport ($bMultibyteSupport=true)
 

Static Public Member Functions

static create ()
 

Public Attributes

bool $bLenientParsing = true
 Lenient parsing.
 
bool $bMultibyteSupport
 Multi-byte string support.
 
string $sDefaultCharset = 'utf-8'
 The default charset for the CSS if no @charset rule is found.
 

Member Function Documentation

◆ beStrict()

Sabberworm\CSS\Settings::beStrict ( )
Return values
selffluent interface

◆ create()

static Sabberworm\CSS\Settings::create ( )
static
Return values
selfnew instance

◆ withDefaultCharset()

Sabberworm\CSS\Settings::withDefaultCharset ( $sDefaultCharset)
Parameters
string$sDefaultCharset
Return values
selffluent interface

◆ withLenientParsing()

Sabberworm\CSS\Settings::withLenientParsing ( $bLenientParsing = true)
Parameters
bool$bLenientParsing
Return values
selffluent interface

◆ withMultibyteSupport()

Sabberworm\CSS\Settings::withMultibyteSupport ( $bMultibyteSupport = true)
Parameters
bool$bMultibyteSupport
Return values
selffluent interface

Member Data Documentation

◆ $bLenientParsing

bool Sabberworm\CSS\Settings::$bLenientParsing = true

Lenient parsing.

When used (which is true by default), the parser will not choke on unexpected tokens but simply ignore them.

◆ $bMultibyteSupport

bool Sabberworm\CSS\Settings::$bMultibyteSupport

Multi-byte string support.

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.

◆ $sDefaultCharset

string Sabberworm\CSS\Settings::$sDefaultCharset = 'utf-8'

The default charset for the CSS if no @charset rule is found.

Defaults to utf-8.


The documentation for this class was generated from the following file: