Sabberworm\CSS\CSSList\CSSList
A CSSList is the most generic container available. Its contents include RuleSet as well as other CSSList objects.
Also, it may contain Import and Charset objects stemming from @-rules.
Synopsis
class CSSList
implements
Renderable,Commentable
{
- // members
- protected $aComments;
- protected $aContents;
- protected $iLineNo;
- // methods
- public void __construct()
- public int getLineNo()
- public void append()
- public void remove()
- public void setContents()
- public void removeDeclarationBlockBySelector()
- public void __toString()
- public void render()
- public abstract void isRootList()
- public void getContents()
- public void addComments()
- public array getComments()
- public void setComments()
Hierarchy
Members
protected
- $aComments
- $aContents
- $iLineNo
Methods
public
- __construct()
- __toString()
- addComments()
- append()
- getComments()
- getContents()
- getLineNo()
- isRootList() — Return true if the list can not be further outdented. Only important when rendering.
- remove() — Removes an item from the CSS list.
- removeDeclarationBlockBySelector() — Removes a declaration block from the CSS list if it matches all given selectors.
- render()
- setComments()
- setContents() — Set the contents.