|
|
array< array-key, $aComments;protected array< int, $aContents;protected int $iLineNo;public function __construct( $iLineNo=0) { $this->aComments=[];$this-> | aContents = [] |
| | Comment>
|
| |
◆ __toString()
| Sabberworm\CSS\CSSList\CSSList::__toString |
( |
| ) |
|
◆ addComments()
| Sabberworm\CSS\CSSList\CSSList::addComments |
( |
array | $aComments | ) |
|
◆ append()
| Sabberworm\CSS\CSSList\CSSList::append |
( |
| $oItem | ) |
|
Appends an item to the list of contents.
- Parameters
-
| RuleSet | CSSList | Import | Charset | $oItem | |
- Return values
-
◆ getComments()
| Sabberworm\CSS\CSSList\CSSList::getComments |
( |
| ) |
|
◆ getContents()
| Sabberworm\CSS\CSSList\CSSList::getContents |
( |
| ) |
|
Returns the stored items.
- Return values
-
| array<int,RuleSet|Import|Charset|CSSList> | |
◆ getLineNo()
| Sabberworm\CSS\CSSList\CSSList::getLineNo |
( |
| ) |
|
◆ insertBefore()
| Sabberworm\CSS\CSSList\CSSList::insertBefore |
( |
| $item, |
|
|
| $sibling ) |
Inserts an item in the CSS list before its sibling.
If the desired sibling cannot be found, the item is appended at the end.
- Parameters
-
| RuleSet | CSSList | Import | Charset | $item | |
| RuleSet | CSSList | Import | Charset | $sibling | |
◆ isRootList()
| Sabberworm\CSS\CSSList\CSSList::isRootList |
( |
| ) |
|
|
abstract |
◆ parseList()
| static Sabberworm\CSS\CSSList\CSSList::parseList |
( |
ParserState | $oParserState, |
|
|
CSSList | $oList ) |
|
static |
- Return values
-
- Exceptions
-
| UnexpectedTokenException | |
| SourceException | |
◆ prepend()
| Sabberworm\CSS\CSSList\CSSList::prepend |
( |
| $oItem | ) |
|
Prepends an item to the list of contents.
- Parameters
-
| RuleSet | CSSList | Import | Charset | $oItem | |
- Return values
-
◆ remove()
| Sabberworm\CSS\CSSList\CSSList::remove |
( |
| $oItemToRemove | ) |
|
Removes an item from the CSS list.
- Parameters
-
| RuleSet | Import | Charset | CSSList | $oItemToRemove | May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery) |
- Return values
-
| bool | whether the item was removed |
◆ removeDeclarationBlockBySelector()
| Sabberworm\CSS\CSSList\CSSList::removeDeclarationBlockBySelector |
( |
| $mSelector, |
|
|
| $bRemoveAll = false ) |
Removes a declaration block from the CSS list if it matches all given selectors.
- Parameters
-
| DeclarationBlock|array<array-key,Selector>|string | $mSelector the selectors to match |
| bool | $bRemoveAll | whether to stop at the first declaration block found or remove all blocks |
- Return values
-
◆ render()
| Sabberworm\CSS\Renderable::render |
( |
| $oOutputFormat | ) |
|
|
inherited |
- Parameters
-
| OutputFormat | null | $oOutputFormat | |
- Return values
-
Implemented in Sabberworm\CSS\Comment\Comment, Sabberworm\CSS\CSSList\AtRuleBlockList, Sabberworm\CSS\CSSList\Document, Sabberworm\CSS\CSSList\KeyFrame, Sabberworm\CSS\Property\Charset, Sabberworm\CSS\Property\CSSNamespace, Sabberworm\CSS\Property\Import, Sabberworm\CSS\RuleSet\AtRuleSet, Sabberworm\CSS\RuleSet\DeclarationBlock, Sabberworm\CSS\Value\CalcRuleValueList, Sabberworm\CSS\Value\Color, Sabberworm\CSS\Value\CSSFunction, Sabberworm\CSS\Value\CSSString, Sabberworm\CSS\Value\LineName, Sabberworm\CSS\Value\Size, Sabberworm\CSS\Value\URL, and Sabberworm\CSS\Value\ValueList.
◆ renderListContents()
| Sabberworm\CSS\CSSList\CSSList::renderListContents |
( |
OutputFormat | $oOutputFormat | ) |
|
|
protected |
◆ replace()
| Sabberworm\CSS\CSSList\CSSList::replace |
( |
| $oOldItem, |
|
|
| $mNewItem ) |
Replaces an item from the CSS list.
- Parameters
-
| RuleSet | Import | Charset | CSSList | $oOldItem | May be a RuleSet (most likely a DeclarationBlock), an Import, a Charset or another CSSList (most likely a MediaQuery) |
- Return values
-
◆ setComments()
| Sabberworm\CSS\CSSList\CSSList::setComments |
( |
array | $aComments | ) |
|
◆ setContents()
| Sabberworm\CSS\CSSList\CSSList::setContents |
( |
array | $aContents | ) |
|
- Parameters
-
| array<int,RuleSet|Import|Charset|CSSList> | $aContents |
◆ splice()
| Sabberworm\CSS\CSSList\CSSList::splice |
( |
| $iOffset, |
|
|
| $iLength = null, |
|
|
| $mReplacement = null ) |
Splices the list of contents.
- Parameters
-
| int | $iOffset | |
| int | $iLength | |
| array<int,RuleSet|CSSList|Import|Charset> | $mReplacement |
- Return values
-
The documentation for this class was generated from the following file:
- lib/php-css-parser/src/CSSList/CSSList.php