\SassScriptFunction
SassScriptFunction class.
Preforms a SassScript function.
Synopsis
class SassScriptFunction
{
- // constants
- const MATCH = '/^(((-\w)|(\w))[-\w]*)\(/';
- const MATCH_FUNC = '/^((?:(?:-\w)|(?:\w))[-\w]*)\((.*)\)/';
- const SPLIT_ARGS = '/\s*((?:[\'"].*?["\'])|(?:.+?(?:\(.*\).*?)?))\s*(?:,|$)/';
- const NAME = 1;
- const ARGS = 2;
- // methods
- public SassScriptFunction __construct()
- private void process_arguments()
- public Function perform()
- private array import()
- public static mixed isa()
- public static void extractArgs()
- public static void get_reflection()
- public static void fill_parameters()
Constants
Name | Value |
---|---|
MATCH | '/^(((-\w)|(\w))[-\w]*)\(/' |
MATCH_FUNC | '/^((?:(?:-\w)|(?:\w))[-\w]*)\((.*)\)/' |
SPLIT_ARGS | '/\s*((?:[\'"].*?["\'])|(?:.+?(?:\(.*\).*?)?))\s*(?:,|$)/' |
NAME | 1 |
ARGS | 2 |
Members
private
- $args
- $name
public
- $context
Methods
private
- import() — Imports files in the specified directory.
- process_arguments()
public
- __construct() — SassScriptFunction constructor
- extractArgs()
- fill_parameters()
- get_reflection()
- isa() — Returns a value indicating if a token of this type can be matched at the start of the subject string.
- perform() — Evaluates the function.