PHP Class SassScriptFunction

Preforms a SassScript function.
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство Type Description
$context

Méthodes publiques

Méthode Description
__construct ( string $name, array $args ) : SassScriptFunction SassScriptFunction constructor
extractArgs ( $string, $include_null = TRUE, $context )
fill_parameters ( $required, $provided, $context, $source )
get_reflection ( $method )
isa ( string $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.
perform ( ) : object Evaluates the function.

Private Methods

Méthode Description
import ( string $dir ) : array Imports files in the specified directory.
process_arguments ( $input )

Method Details

__construct() public méthode

SassScriptFunction constructor
public __construct ( string $name, array $args ) : SassScriptFunction
$name string name of the function
$args array arguments for the function
Résultat SassScriptFunction

extractArgs() public static méthode

public static extractArgs ( $string, $include_null = TRUE, $context )

fill_parameters() public static méthode

public static fill_parameters ( $required, $provided, $context, $source )

get_reflection() public static méthode

public static get_reflection ( $method )

isa() public static méthode

Returns a value indicating if a token of this type can be matched at the start of the subject string.
public static isa ( string $subject ) : mixed
$subject string the subject string
Résultat mixed match at the start of the string or false if no match

perform() public méthode

Look for a user defined function first - this allows users to override pre-defined functions, then try the pre-defined functions.
public perform ( ) : object
Résultat object the value of this Function

Property Details

$context public_oe static_oe property

public static $context