css-sanitizer
Classes to parse and sanitize CSS
|
Represent a CSS declaration. More...
Public Member Functions | |
__construct (Token $token) | |
__clone () | |
getPosition () | |
Get the position of this Declaration in the input stream. | |
getName () | |
Return the declaration's name. | |
getValue () | |
Return the declaration's value. | |
getImportant () | |
Return the declaration's 'important' flag. | |
setImportant ( $flag) | |
Set the 'important' flag. | |
toTokenArray () | |
@inheritDoc | |
toComponentValueArray () | |
@inheritDoc | |
__toString () | |
Protected Attributes | |
$line = -1 | |
$pos = -1 | |
$name | |
$value | |
$important = false | |
Represent a CSS declaration.
Wikimedia\CSS\Objects\Declaration::__construct | ( | Token | $token | ) |
Token | $token | Token starting the declaration |
Wikimedia\CSS\Objects\Declaration::getImportant | ( | ) |
Return the declaration's 'important' flag.
Wikimedia\CSS\Objects\Declaration::getName | ( | ) |
Return the declaration's name.
Wikimedia\CSS\Objects\Declaration::getPosition | ( | ) |
Get the position of this Declaration in the input stream.
Implements Wikimedia\CSS\Objects\CSSObject.
Wikimedia\CSS\Objects\Declaration::getValue | ( | ) |
Return the declaration's value.
Wikimedia\CSS\Objects\Declaration::setImportant | ( | $flag | ) |
Set the 'important' flag.
bool | $flag |
Wikimedia\CSS\Objects\Declaration::toComponentValueArray | ( | ) |
@inheritDoc
Implements Wikimedia\CSS\Objects\CSSObject.
Wikimedia\CSS\Objects\Declaration::toTokenArray | ( | ) |
@inheritDoc
Implements Wikimedia\CSS\Objects\CSSObject.