PHP Class SassDirectiveNode

Represents a CSS directive.
Inheritance: extends SassNode
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Méthode Description
__clone ( )
__construct ( object $token ) : SassDirectiveNode SassDirectiveNode.
extractDirective ( object $token ) : string Returns the directive
interpolate_nonstrict ( $string, $context )
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
parse ( SassContext $context ) : array Parse this node.
render ( ) : string Render this node.

Méthodes protégées

Méthode Description
getDirective ( )

Method Details

__clone() public méthode

See also: parse
public __clone ( )

__construct() public méthode

SassDirectiveNode.
public __construct ( object $token ) : SassDirectiveNode
$token object source token
Résultat SassDirectiveNode

extractDirective() public static méthode

Returns the directive
public static extractDirective ( object $token ) : string
$token object token
Résultat string the directive

getDirective() protected méthode

protected getDirective ( )

interpolate_nonstrict() public static méthode

public static interpolate_nonstrict ( $string, $context )

isa() public static méthode

Returns a value indicating if the token represents this type of node.
public static isa ( object $token ) : boolean
$token object token
Résultat boolean true if the token represents this type of node, false if not

parse() public méthode

Parse this node.
public parse ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
Résultat array the parsed node

render() public méthode

Render this node.
public render ( ) : string
Résultat string the rendered node