OrpheuGetFunction

Retrieves a function based on a function name The name must be the same as the one in the file where the function is defined

Syntax

native OrpheuFunction:OrpheuGetFunction(const libFunctionName[],const className[]="") /** * Hooks a function * * @param function A handler to the function * @param hookFunctionName The function name in the plugin that shall be called upon interception of the original function * @param phase The phase of the hook. It can have two values. Pre means "right before the original function is called". Post means "right after the original function is called" * * @return A handler to the hook */ native OrpheuHook:OrpheuRegisterHook(OrpheuFunction:function,const hookFunctionName[],OrpheuHookPhase:phase = OrpheuHookPre) /** * Unregisters a hook (stops it) * * @param hook A handler to the hook */ native OrpheuUnregisterHook(OrpheuHook:hook) /** * Calls a function without triggering its hooks * * @param function A handler to the function * @param any The arguments of the function */ native OrpheuCall(OrpheuFunction:function,any:...) /** * Calls a function and triggers its hooks

Usage

libFunctionName The name of the function as it is in the file where the function is defined
className The name of the class if the function belongs to one

Return

A — handler to the function

Defined in orpheu.inc at line 18 . This documentation was automatically generated from source.