public class ClassesModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
ClassesModule() |
Modifier and Type | Method and Description |
---|---|
static Value |
call_user_method_array(Env env,
StringValue methodName,
Value obj,
ArrayValue params)
Calls a object method with arguments in an array.
|
static Value |
call_user_method(Env env,
StringValue name,
Value obj,
Value[] args)
Calls an object method.
|
boolean |
class_alias(Env env,
java.lang.String original,
java.lang.String alias,
boolean isAutoLoad)
bool class_alias ( string $original , string $alias [, bool $autoload = TRUE ] )
|
static boolean |
class_exists(Env env,
java.lang.String className,
boolean useAutoload)
returns true if the class exists.
|
static java.lang.String |
get_called_class(Env env)
Returns the calling class name.
|
static Value |
get_class_methods(Env env,
Value cls)
Returns an array of method names
|
static Value |
get_class_vars(Env env,
Value obj)
Returns an array of member names and values
|
static Value |
get_class(Env env,
Value value)
Returns the object's class name
|
static Value |
get_declared_classes(Env env)
Returns the declared classes
|
static Value |
get_object_vars(Env env,
Value obj)
Returns the object's variables
|
Value |
get_parent_class(Env env,
Value value)
Returns the object's class name
|
boolean |
interface_exists(Env env,
java.lang.String interfaceName,
boolean useAutoload)
Returns true if the class exists.
|
static boolean |
is_a(Env env,
Value value,
java.lang.String name)
Returns true if the object implements the given class.
|
static boolean |
is_object(Value value)
Returns true if the argument is an object.
|
static boolean |
is_subclass_of(Env env,
Value value,
java.lang.String name)
Returns true if the object implements the given class.
|
static boolean |
method_exists(Env env,
Value obj,
StringValue methodName)
Returns true if the named method exists on the object.
|
static Value |
property_exists(Env env,
Value obj,
StringValue name)
Returns true if the named property exists on the object.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static Value call_user_method(Env env, StringValue name, Value obj, Value[] args)
public static Value call_user_method_array(Env env, StringValue methodName, Value obj, ArrayValue params)
public boolean class_alias(Env env, java.lang.String original, java.lang.String alias, boolean isAutoLoad)
public static boolean class_exists(Env env, java.lang.String className, boolean useAutoload)
public static java.lang.String get_called_class(Env env)
public static Value get_class_methods(Env env, Value cls)
clss
- the name of the class, or an instance of a classpublic static Value get_class_vars(Env env, Value obj)
clss
- the name of the class, or an instance of a classpublic static Value get_object_vars(Env env, Value obj)
public Value get_parent_class(Env env, Value value)
public boolean interface_exists(Env env, java.lang.String interfaceName, boolean useAutoload)
public static boolean is_a(Env env, Value value, java.lang.String name)
public static boolean is_object(Value value)
public static boolean is_subclass_of(Env env, Value value, java.lang.String name)
public static boolean method_exists(Env env, Value obj, StringValue methodName)
obj
- the object to testmethodName
- the name of the methodpublic static Value property_exists(Env env, Value obj, StringValue name)