Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
core_cssparser Class Reference

Moodle CSS parser. More...

Inheritance diagram for core_cssparser:
Sabberworm\CSS\Parser

Public Member Functions

 __construct ($css)
 Constructor.
 
 getCharset ()
 Returns the charset that is used if the CSS does not contain an @charset declaration.
 
 parse ()
 Parses the CSS provided to the constructor and creates a Document from it.
 
 setCharset ($sCharset)
 Sets the charset to be used if the CSS does not contain an @charset declaration.
 

Detailed Description

Moodle CSS parser.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_cssparser::__construct ( $css)

Constructor.

Parameters
string$cssThe CSS content.

Member Function Documentation

◆ getCharset()

Sabberworm\CSS\Parser::getCharset ( )
inherited

Returns the charset that is used if the CSS does not contain an @charset declaration.

Return values
void
Deprecated
since 8.7.0, will be removed in version 9.0.0 with #687

◆ parse()

Sabberworm\CSS\Parser::parse ( )
inherited

Parses the CSS provided to the constructor and creates a Document from it.

Return values
Document
Exceptions
SourceException

◆ setCharset()

Sabberworm\CSS\Parser::setCharset ( $sCharset)
inherited

Sets the charset to be used if the CSS does not contain an @charset declaration.

Parameters
string$sCharset
Return values
void
Deprecated
since 8.7.0, will be removed in version 9.0.0 with #687

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