PHP Класс Sabberworm\CSS\CSSList\CSSList

Also, it may contain Import and Charset objects stemming from @-rules.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$aComments
$aContents
$iLineNo

Открытые методы

Метод Описание
__construct ( $iLineNo )
__toString ( )
addComments ( array $aComments )
append ( $oItem )
getComments ( ) : array
getContents ( )
getLineNo ( ) : integer
isRootList ( ) Return true if the list can not be further outdented. Only important when rendering.
remove ( Sabberworm\CSS\RuleSet\RuleSet | Import | Charset | CSSList $oItemToRemove ) Removes an item from the CSS list.
removeDeclarationBlockBySelector ( array | string $mSelector, boolean $bRemoveAll = false ) Removes a declaration block from the CSS list if it matches all given selectors.
render ( Sabberworm\CSS\OutputFormat $oOutputFormat )
setComments ( array $aComments )
setContents ( array $aContents ) Set the contents.

Описание методов

__construct() публичный Метод

public __construct ( $iLineNo )

__toString() публичный Метод

public __toString ( )

addComments() публичный Метод

public addComments ( array $aComments )
$aComments array Array of comments.

append() публичный Метод

public append ( $oItem )

getComments() публичный Метод

public getComments ( ) : array
Результат array

getContents() публичный Метод

public getContents ( )

getLineNo() публичный Метод

public getLineNo ( ) : integer
Результат integer

isRootList() абстрактный публичный Метод

Return true if the list can not be further outdented. Only important when rendering.
abstract public isRootList ( )

remove() публичный Метод

Removes an item from the CSS list.
public remove ( Sabberworm\CSS\RuleSet\RuleSet | Import | Charset | CSSList $oItemToRemove )
$oItemToRemove Sabberworm\CSS\RuleSet\RuleSet | Import | Charset | CSSList May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)

removeDeclarationBlockBySelector() публичный Метод

Removes a declaration block from the CSS list if it matches all given selectors.
public removeDeclarationBlockBySelector ( array | string $mSelector, boolean $bRemoveAll = false )
$mSelector array | string The selectors to match.
$bRemoveAll boolean Whether to stop at the first declaration block found or remove all blocks

render() публичный Метод

public render ( Sabberworm\CSS\OutputFormat $oOutputFormat )
$oOutputFormat Sabberworm\CSS\OutputFormat

setComments() публичный Метод

public setComments ( array $aComments )
$aComments array Array containing Comment objects.

setContents() публичный Метод

Set the contents.
public setContents ( array $aContents )
$aContents array Objects to set as content.

Описание свойств

$aComments защищенное свойство

protected $aComments

$aContents защищенное свойство

protected $aContents

$iLineNo защищенное свойство

protected $iLineNo