Public Member Functions | |
__construct ($source=null, array $plugins=null) | |
appendToken (aCssToken $token) | |
clearBuffer () | |
getAndClearBuffer ($trim="", $tolower=false) | |
getBuffer ($trim="", $tolower=false) | |
getMediaTypes () | |
getSource () | |
getState () | |
getPlugin ($class) | |
getTokens () | |
isState ($state) | |
parse ($source) | |
popState () | |
pushState ($state) | |
setBuffer ($buffer) | |
setExclusive ($exclusive) | |
setMediaTypes (array $mediaTypes) | |
setState ($state) | |
unsetExclusive () | |
unsetMediaTypes () |
Definition at line 1378 of file cssmin.php.
CssParser::__construct | ( | $source = null , |
|
array | $plugins = null |
||
) |
Constructer.
Create instances of the used plugins.
string | $source | CSS source [optional] |
array | $plugins | Plugin configuration [optional] |
Definition at line 1437 of file cssmin.php.
References parse(), and CssMin\triggerError().
CssParser::appendToken | ( | aCssToken | $token | ) |
Append a token to the array of tokens.
aCssToken | $token | Token to append |
Definition at line 1482 of file cssmin.php.
CssParser::clearBuffer | ( | ) |
Clears the current buffer.
Definition at line 1491 of file cssmin.php.
CssParser::getAndClearBuffer | ( | $trim = "" , |
|
$tolower = false |
|||
) |
Returns and clear the current buffer.
string | $trim | Chars to use to trim the returned buffer |
boolean | $tolower | if TRUE the returned buffer will get converted to lower case |
Definition at line 1502 of file cssmin.php.
References getBuffer().
CssParser::getBuffer | ( | $trim = "" , |
|
$tolower = false |
|||
) |
Returns the current buffer.
string | $trim | Chars to use to trim the returned buffer |
boolean | $tolower | if TRUE the returned buffer will get converted to lower case |
Definition at line 1515 of file cssmin.php.
Referenced by getAndClearBuffer().
CssParser::getMediaTypes | ( | ) |
Returns the current media types state.
Definition at line 1533 of file cssmin.php.
CssParser::getPlugin | ( | $class | ) |
Returns a plugin by class name.
string | $name | Class name of the plugin |
Definition at line 1561 of file cssmin.php.
CssParser::getSource | ( | ) |
Returns the CSS source.
Definition at line 1542 of file cssmin.php.
CssParser::getState | ( | ) |
Returns the current state.
Definition at line 1551 of file cssmin.php.
CssParser::getTokens | ( | ) |
Returns the parsed tokens.
Definition at line 1579 of file cssmin.php.
CssParser::isState | ( | $state | ) |
Returns if the current state equals the passed state.
integer | $state | State to compare with the current state |
Definition at line 1589 of file cssmin.php.
CssParser::parse | ( | $source | ) |
Parse the CSS source and return a array with parsed tokens.
string | $source | CSS source |
Definition at line 1599 of file cssmin.php.
Referenced by __construct().
CssParser::popState | ( | ) |
Remove the last state of the state stack and return the removed stack value.
Definition at line 1713 of file cssmin.php.
CssParser::pushState | ( | $state | ) |
Adds a new state onto the state stack.
integer | $state | State to add onto the state stack. |
Definition at line 1725 of file cssmin.php.
CssParser::setBuffer | ( | $buffer | ) |
Sets/restores the buffer.
string | $buffer | Buffer to set |
Definition at line 1737 of file cssmin.php.
CssParser::setExclusive | ( | $exclusive | ) |
Set the exclusive state.
string | $exclusive | Exclusive state |
Definition at line 1747 of file cssmin.php.
CssParser::setMediaTypes | ( | array | $mediaTypes | ) |
Set the media types state.
array | $mediaTypes | Media types state |
Definition at line 1757 of file cssmin.php.
CssParser::setState | ( | $state | ) |
Sets the current state in the state stack; equals to CssParser::popState() + CssParser::pushState().
integer | $state | State to set |
Definition at line 1767 of file cssmin.php.
CssParser::unsetExclusive | ( | ) |
Removes the exclusive state.
Definition at line 1779 of file cssmin.php.
CssParser::unsetMediaTypes | ( | ) |
Removes the media types state.
Definition at line 1788 of file cssmin.php.