public class FunctionModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
FunctionModule() |
Modifier and Type | Method and Description |
---|---|
static Value |
call_user_func_array(Env env,
Callable function,
Value arg)
Calls a user function
|
static Value |
call_user_func(Env env,
Callable function,
Value[] args)
Calls a user function
|
static Value |
create_function(Env env,
java.lang.String args,
java.lang.String code)
Creates an anonymous function
|
static Value |
func_get_arg(Env env,
int index)
Returns the nth function argument.
|
static Value |
func_get_args(Env env)
Returns the function arguments as an array.
|
static Value |
func_num_args(Env env)
Returns the number of arguments to the function.
|
static boolean |
function_exists(Env env,
StringValue name)
Returns true if the function exists.
|
static Value |
get_defined_functions(Env env)
Returns an array of the defined functions
|
static Value |
register_shutdown_function(Env env,
Callable fun,
Value[] args)
Registers a shutdown function.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static Value call_user_func(Env env, Callable function, Value[] args)
public static Value call_user_func_array(Env env, Callable function, Value arg)
public static Value create_function(Env env, java.lang.String args, java.lang.String code)
public static Value func_get_arg(Env env, int index)
public static Value func_get_args(Env env)
public static Value func_num_args(Env env)
public static boolean function_exists(Env env, StringValue name)
env
- the PHP environmentname
- the function namepublic static Value get_defined_functions(Env env)