PHP 클래스 Zephir\FunctionCall

Call functions. By default functions are called in the PHP userland if an optimizer was not found or there is not a user-handler for it
상속: extends Call
파일 보기 프로젝트 열기: phalcon/zephir 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_functionReflection
$_optimizerDirectories
$_optimizers

공개 메소드들

메소드 설명
addOptimizerDir ( string $directory ) Appends an optimizer directory to the directory list
compile ( zephir\Expression $expr, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression Compiles a function
functionExists ( string $functionName, zephir\CompilationContext $context ) : boolean Checks if a function exists or is a built-in Zephir function
getReflector ( string $funcName ) : ReflectionFunction Process the ReflectionFunction for the specified function name
isBuiltInFunction ( string $functionName ) Checks if the function is a built-in provided by Zephir

보호된 메소드들

메소드 설명
_callDynamic ( array $expression, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression
_callNormal ( array $expression, zephir\CompilationContext $compilationContext )
isReadOnly ( string $funcName, array $expression ) : boolean This method gets the reflection of a function to check if any of their parameters are passed by reference Built-in functions rarely change the parameters if they aren't passed by reference
markReferences ( string $funcName, array $parameters, zephir\CompilationContext $compilationContext, array &$references, array $expression ) : boolean Once the function processes the parameters we should mark specific parameters to be passed by reference
optimize ( string $funcName, array $expression, Call $call, zephir\CompilationContext $compilationContext ) Tries to find specific an specialized optimizer for function calls

메소드 상세

_callDynamic() 보호된 메소드

protected _callDynamic ( array $expression, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression
$expression array
$compilationContext zephir\CompilationContext
리턴 zephir\CompiledExpression

_callNormal() 보호된 메소드

protected _callNormal ( array $expression, zephir\CompilationContext $compilationContext )
$expression array
$compilationContext zephir\CompilationContext

addOptimizerDir() 공개 정적인 메소드

Appends an optimizer directory to the directory list
public static addOptimizerDir ( string $directory )
$directory string

compile() 공개 메소드

Compiles a function
public compile ( zephir\Expression $expr, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression
$expr zephir\Expression
$compilationContext zephir\CompilationContext
리턴 zephir\CompiledExpression

functionExists() 공개 메소드

Checks if a function exists or is a built-in Zephir function
public functionExists ( string $functionName, zephir\CompilationContext $context ) : boolean
$functionName string
$context zephir\CompilationContext
리턴 boolean

getReflector() 공개 메소드

Process the ReflectionFunction for the specified function name
public getReflector ( string $funcName ) : ReflectionFunction
$funcName string
리턴 ReflectionFunction

isBuiltInFunction() 공개 메소드

Checks if the function is a built-in provided by Zephir
public isBuiltInFunction ( string $functionName )
$functionName string

isReadOnly() 보호된 메소드

This method gets the reflection of a function to check if any of their parameters are passed by reference Built-in functions rarely change the parameters if they aren't passed by reference
protected isReadOnly ( string $funcName, array $expression ) : boolean
$funcName string
$expression array
리턴 boolean

markReferences() 보호된 메소드

Once the function processes the parameters we should mark specific parameters to be passed by reference
protected markReferences ( string $funcName, array $parameters, zephir\CompilationContext $compilationContext, array &$references, array $expression ) : boolean
$funcName string
$parameters array
$compilationContext zephir\CompilationContext
$references array
$expression array
리턴 boolean

optimize() 보호된 메소드

Tries to find specific an specialized optimizer for function calls
protected optimize ( string $funcName, array $expression, Call $call, zephir\CompilationContext $compilationContext )
$funcName string
$expression array
$call Call
$compilationContext zephir\CompilationContext

프로퍼티 상세

$_functionReflection 보호되어 있는 정적으로 프로퍼티

protected static $_functionReflection

$_optimizerDirectories 보호되어 있는 정적으로 프로퍼티

protected static $_optimizerDirectories

$_optimizers 보호되어 있는 정적으로 프로퍼티

protected static $_optimizers