css-sanitizer
Classes to parse and sanitize CSS
|
Represent a CSS function. More...
Public Member Functions | |
__construct (Token $token) | |
__clone () | |
getName () | |
Return the function's name. | |
getValue () | |
Return the function's value. | |
toTokenArray () | |
Return an array of Tokens that correspond to this object. | |
__toString () | |
Public Member Functions inherited from Wikimedia\CSS\Objects\ComponentValue | |
getPosition () | |
Get the position of this ComponentValue in the input stream. | |
toComponentValueArray () | |
@inheritDoc | |
Static Public Member Functions | |
static | newFromName ( $name) |
Create a function by name. | |
Protected Attributes | |
$name | |
$value | |
Protected Attributes inherited from Wikimedia\CSS\Objects\ComponentValue | |
$line = -1 | |
$pos = -1 | |
Represent a CSS function.
Wikimedia\CSS\Objects\CSSFunction::__construct | ( | Token | $token | ) |
Token | $token | Function token starting the rule |
Wikimedia\CSS\Objects\CSSFunction::getName | ( | ) |
Return the function's name.
Wikimedia\CSS\Objects\CSSFunction::getValue | ( | ) |
Return the function's value.
|
static |
Create a function by name.
string | $name |
Wikimedia\CSS\Objects\CSSFunction::toTokenArray | ( | ) |
Return an array of Tokens that correspond to this object.
Implements Wikimedia\CSS\Objects\CSSObject.