PHP 클래스 SassIfNode
Represents Sass If, Else If and Else statements.
Else If and Else statement nodes are chained below the If statement node.
파일 보기
프로젝트 열기: richthegeek/phpsass
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__construct ( object $token, boolean $if = true ) : SassIfNode |
SassIfNode constructor. |
|
addElse ( $node ) : SassIfNode |
Adds an "else" statement to this node. |
|
parse ( SassContext $context ) : array |
Parse this node. |
|
비공개 메소드들
메소드 |
설명 |
|
isElse ( ) : true |
Returns a value indicating if this node is an "else" node. |
|
메소드 상세
Adds an "else" statement to this node.
public addElse ( $node ) : SassIfNode |
리턴 |
SassIfNode |
this node |
public parse ( SassContext $context ) : array |
$context |
SassContext |
the context in which this node is parsed |
리턴 |
array |
parsed child nodes |