PHP Класс SassScriptFunction

Preforms a SassScript function.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$context

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
import ( string $dir ) : array Imports files in the specified directory.
process_arguments ( $input )

Описание методов

__construct() публичный Метод

SassScriptFunction constructor
public __construct ( string $name, array $args ) : SassScriptFunction
$name string name of the function
$args array arguments for the function
Результат SassScriptFunction

extractArgs() публичный статический Метод

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

fill_parameters() публичный статический Метод

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

get_reflection() публичный статический Метод

public static get_reflection ( $method )

isa() публичный статический Метод

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
Результат mixed match at the start of the string or false if no match

perform() публичный Метод

Look for a user defined function first - this allows users to override pre-defined functions, then try the pre-defined functions.
public perform ( ) : object
Результат object the value of this Function

Описание свойств

$context публичное статическое свойство

public static $context