PHP Class SassIfNode
Represents Sass If, Else If and Else statements.
Else If and Else statement nodes are chained below the If statement node.
Afficher le fichier
Open project: richthegeek/phpsass
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
__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. |
|
Private Methods
Méthode |
Description |
|
isElse ( ) : true |
Returns a value indicating if this node is an "else" node. |
|
Method Details
__construct()
public méthode
public __construct ( object $token, boolean $if = true ) : SassIfNode |
$token |
object |
source token |
$if |
boolean |
true for an "if" node, false for an "else if | else" node |
Résultat |
SassIfNode |
|
Adds an "else" statement to this node.
public addElse ( $node ) : SassIfNode |
Résultat |
SassIfNode |
this node |
public parse ( SassContext $context ) : array |
$context |
SassContext |
the context in which this node is parsed |
Résultat |
array |
parsed child nodes |