css-sanitizer
Classes to parse and sanitize CSS
|
Represent a CSS simple block. More...
Public Member Functions | |
__construct (Token $token) | |
__clone () | |
getStartTokenType () | |
Get the start token type. | |
getEndTokenType () | |
Get the end token type. | |
getValue () | |
Return the block's value. | |
toTokenArray () | |
@inheritDoc | |
__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 | newFromDelimiter ( $delimiter) |
Create simple block by token type. | |
static | matchingDelimiter ( $delim) |
Return the ending delimiter for a starting delimiter. | |
Protected Attributes | |
$startTokenType | |
$endTokenType | |
$value | |
Protected Attributes inherited from Wikimedia\CSS\Objects\ComponentValue | |
$line = -1 | |
$pos = -1 | |
Represent a CSS simple block.
Wikimedia\CSS\Objects\SimpleBlock::__construct | ( | Token | $token | ) |
Token | $token | Associated token |
Wikimedia\CSS\Objects\SimpleBlock::getEndTokenType | ( | ) |
Get the end token type.
Wikimedia\CSS\Objects\SimpleBlock::getStartTokenType | ( | ) |
Get the start token type.
Wikimedia\CSS\Objects\SimpleBlock::getValue | ( | ) |
Return the block's value.
|
static |
Return the ending delimiter for a starting delimiter.
string | $delim | Token::T_* constant |
|
static |
Create simple block by token type.
string | $delimiter | Token::T_LEFT_PAREN, Token::T_LEFT_BRACE, or Token::T_LEFT_BRACKET |
Wikimedia\CSS\Objects\SimpleBlock::toTokenArray | ( | ) |
@inheritDoc
Implements Wikimedia\CSS\Objects\CSSObject.