PHP Class SassRootNode

Also the root node of a document.
Inheritance: extends SassNode
Show file Open project: richthegeek/phpsass Class Usage Examples

Public Properties

Property Type Description
$extend_parent Extend_parent - for resolving extends across imported files.
$extenders extenders for this tree in the form extendee=>extender
$parser SassParser
$renderer the renderer for this node
$script SassScript parser

Public Methods

Method Description
__construct ( SassParser $parser ) : SassRootNode Root SassNode constructor.
extend ( $extendee, $selectors ) : mixed | null
getExtenders ( )
isa ( $line ) Returns a value indicating if the line represents this type of node.
parse ( SassContext $context ) : SassNode Parses this node and its children into the render tree.
render ( mixed $context = null ) : string Render this node.

Method Details

__construct() public method

Root SassNode constructor.
public __construct ( SassParser $parser ) : SassRootNode
$parser SassParser Sass parser
return SassRootNode

extend() public method

public extend ( $extendee, $selectors ) : mixed | null
$extendee
$selectors
return mixed | null

getExtenders() public method

public getExtenders ( )

isa() public static method

Child classes must override this method.
public static isa ( $line )

parse() public method

Dynamic nodes are evaluated, files imported, etc. Only static nodes for rendering are in the resulting tree.
public parse ( SassContext $context ) : SassNode
$context SassContext the context in which this node is parsed
return SassNode root node of the render tree

render() public method

Render this node.
public render ( mixed $context = null ) : string
$context mixed
return string the rendered node

Property Details

$extend_parent public property

Extend_parent - for resolving extends across imported files.
public $extend_parent

$extenders public property

extenders for this tree in the form extendee=>extender
public $extenders

$parser public property

public SassParser $parser
return SassParser

$renderer public property

the renderer for this node
public $renderer

$script public property

SassScript parser
public $script