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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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