PHP Class SassDirectiveNode

Represents a CSS directive.
Inheritance: extends SassNode
Datei anzeigen Open project: richthegeek/phpsass Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
getDirective ( )

Method Details

__clone() public method

See also: parse
public __clone ( )

__construct() public method

SassDirectiveNode.
public __construct ( object $token ) : SassDirectiveNode
$token object source token
return SassDirectiveNode

extractDirective() public static method

Returns the directive
public static extractDirective ( object $token ) : string
$token object token
return string the directive

getDirective() protected method

protected getDirective ( )

interpolate_nonstrict() public static method

public static interpolate_nonstrict ( $string, $context )

isa() public static method

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

parse() public method

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

render() public method

Render this node.
public render ( ) : string
return string the rendered node