Moodle CSS parser.
More...
|
| __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.
|
|
Moodle CSS parser.
- Copyright
- 2016 Frédéric Massart
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_cssparser::__construct |
( |
| $css | ) |
|
Constructor.
- Parameters
-
string | $css | The CSS content. |
◆ getCharset()
Sabberworm\CSS\Parser::getCharset |
( |
| ) |
|
|
inherited |
Returns the charset that is used if the CSS does not contain an @charset
declaration.
- Return values
-
- 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
-
- Exceptions
-
◆ setCharset()
Sabberworm\CSS\Parser::setCharset |
( |
| $sCharset | ) |
|
|
inherited |
Sets the charset to be used if the CSS does not contain an @charset
declaration.
- Parameters
-
- Return values
-
- 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:
- lib/classes/cssparser.php