PHP 클래스 Sabberworm\CSS\CSSList\CSSList

Also, it may contain Import and Charset objects stemming from @-rules.
파일 보기 프로젝트 열기: sabberworm/php-css-parser 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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