PHP 클래스 SassScriptFunction

Preforms a SassScript function.
파일 보기 프로젝트 열기: richthegeek/phpsass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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