PHP Class SassFunctionDefinitionNode

Represents a Function definition.
Inheritance: extends SassNode
Show file Open project: richthegeek/phpsass Class Usage Examples

Public Properties

Property Type Description
$parent

Public Methods

Method Description
__construct ( object $token ) : SassFunctionDefinitionNode SassFunctionDefinitionNode constructor.
execute ( $pcontext, $provided ) : was Evalutes the function in the given context, with the provided arguments
getArgs ( ) : array Returns the arguments with default values for this function
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
parse ( SassContext $context ) : array Parse this node.

Method Details

__construct() public method

SassFunctionDefinitionNode constructor.
public __construct ( object $token ) : SassFunctionDefinitionNode
$token object source token
return SassFunctionDefinitionNode

execute() public method

Evalutes the function in the given context, with the provided arguments
public execute ( $pcontext, $provided ) : was
return was

getArgs() public method

Returns the arguments with default values for this function
public getArgs ( ) : array
return array the arguments with default values for this function

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

Add this function to the current context.
public parse ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
return array the parsed node - an empty array

Property Details

$parent public property

public $parent