CalcRuleValueList
extends RuleValueList
in package
This class is used to represent all multivalued rules like `font: bold 12px/3 Helvetica, Verdana, sans-serif;` (where the value would be a whitespace-separated list of the primitive value `bold`, a slash-separated list and a comma-separated list).
Table of Contents
- __construct() : mixed
- phpcs:ignore Generic.Files.LineLength
- __toString() : string
- addListComponent() : void
- getListComponents() : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
- getListSeparator() : string
- render() : string
- setListComponents() : void
- setListSeparator() : void
- parseMicrosoftFilter() : CSSFunction
- parseUnicodeRangeValue() : string
Methods
__construct()
phpcs:ignore Generic.Files.LineLength
public
__construct(int $iLineNo) : mixed
Parameters
- $iLineNo : int
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —addListComponent()
public
addListComponent(RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $mComponent) : void
Parameters
- $mComponent : RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string
Return values
void —getListComponents()
public
getListComponents() : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
Return values
array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string> —getListSeparator()
public
getListSeparator() : string
Return values
string —render()
public
render(OutputFormat|null $oOutputFormat) : string
Parameters
- $oOutputFormat : OutputFormat|null
Return values
string —setListComponents()
public
setListComponents(array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string> $aComponents) : void
Parameters
- $aComponents : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
Return values
void —setListSeparator()
public
setListSeparator(string $sSeparator) : void
Parameters
- $sSeparator : string
Return values
void —parseMicrosoftFilter()
private
static parseMicrosoftFilter(ParserState $oParserState) : CSSFunction
Parameters
- $oParserState : ParserState
Tags
Return values
CSSFunction —parseUnicodeRangeValue()
private
static parseUnicodeRangeValue(ParserState $oParserState) : string
Parameters
- $oParserState : ParserState
