C# Class Pchp.Core.Reflection.RoutinesTable

Runtime table of application PHP functions.
Mostra file Open project: iolevel/peachpie

Public Methods

Method Description
DeclarePhpRoutine ( RoutineInfo routine ) : void

Declare a user PHP function.

DeclarePhpRoutine ( RoutineInfo &slot, RoutineInfo routine ) : void
GetDeclaredRoutine ( string name ) : RoutineInfo

Gets routine information in current context.

Private Methods

Method Description
IsDeclared ( RoutineInfo routine ) : bool

Checks whether given routine is declared in current context.

IsDeclared ( int index, RuntimeMethodHandle expected ) : bool

Check PHP routine at index is declared.

RoutinesTable ( int>.Dictionary nameToIndex, List appRoutines, RoutinesCount counter, Action redeclarationCallback ) : System

Method Details

DeclarePhpRoutine() public method

Declare a user PHP function.
public DeclarePhpRoutine ( RoutineInfo routine ) : void
routine RoutineInfo Routine to be declared. Its index is initialized lazily.
return void

DeclarePhpRoutine() public method

public DeclarePhpRoutine ( RoutineInfo &slot, RoutineInfo routine ) : void
slot RoutineInfo
routine RoutineInfo
return void

GetDeclaredRoutine() public method

Gets routine information in current context.
public GetDeclaredRoutine ( string name ) : RoutineInfo
name string Name of the routine.
return RoutineInfo