|
| __construct ($sText, $oParserSettings=null, $iLineNo=1) |
|
| 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.
|
|
◆ __construct()
Sabberworm\CSS\Parser::__construct |
( |
| $sText, |
|
|
| $oParserSettings = null, |
|
|
| $iLineNo = 1 ) |
- Parameters
-
string | $sText | the complete CSS as text (i.e., usually the contents of a CSS file) |
Settings | null | $oParserSettings | |
int | $iLineNo | the line number (starting from 1, not from 0) |
◆ getCharset()
Sabberworm\CSS\Parser::getCharset |
( |
| ) |
|
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 |
( |
| ) |
|
Parses the CSS provided to the constructor and creates a Document
from it.
- Return values
-
- Exceptions
-
◆ setCharset()
Sabberworm\CSS\Parser::setCharset |
( |
| $sCharset | ) |
|
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/php-css-parser/src/Parser.php