|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.VariableModule
public class VariableModule
Information about PHP variables.
Field Summary |
---|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
VariableModule()
|
Method Summary | |
---|---|
static Value |
constant(Env env,
java.lang.String name)
Returns a constant |
static Value |
debug_zval_dump(Env env,
Value v)
Prints a debug version of the variable |
static Value |
define(Env env,
StringValue name,
Value value,
boolean isCaseInsensitive)
Defines a constant |
static boolean |
defined(Env env,
java.lang.String name)
Returns true if the constant is defined. |
static Value |
doubleval(Value v)
Converts to a double |
static boolean |
empty(Value v)
Returns true for an empty variable. |
static Value |
floatval(Value v)
Converts to a double |
static Value |
get_defined_vars(Env env)
Returns the defined variables in the current scope. |
static java.lang.String |
get_resource_type(Env env,
Value v)
|
static java.lang.String |
gettype(Value v)
Returns the type string for the variable |
static boolean |
import_request_variables(Env env,
java.lang.String types,
java.lang.String prefix)
Imports request variables |
static Value |
intval(Value v)
Converts to a long |
static long |
intval(Value v,
int base)
Converts to a long |
static boolean |
is_array(Value v)
Returns true for an array. |
static Value |
is_bool(Value v)
Returns true for a boolean |
static boolean |
is_callable(Env env,
Value v,
boolean isCheckSyntaxOnly,
Value nameRef)
Returns the type string for the variable |
static boolean |
is_double(Value v)
Returns true for a double |
static boolean |
is_float(Value v)
Returns true for a double |
static Value |
is_int(Value v)
Returns true for an integer |
static Value |
is_integer(Value v)
Returns true for an integer |
static Value |
is_long(Value v)
Returns true for an integer |
static boolean |
is_null(Value v)
Returns true for null |
static boolean |
is_numeric(Env env,
Value v)
Returns true for numeric |
static boolean |
is_object(Env env,
Value v)
Returns true for an object |
static boolean |
is_real(Value v)
Returns true for a real |
boolean |
is_resource(Value value)
Returns true if the value is a resource |
static boolean |
is_scalar(Value v)
Returns true for a scalar |
boolean |
is_string(Value value)
Returns true if the value is a string |
static boolean |
isset(Value... values)
Returns the type string for the variable |
static Value |
print_r(Env env,
Value v,
boolean isReturn)
Prints a value. |
static java.lang.String |
serialize(Env env,
Value v)
Serializes the value to a string. |
static boolean |
settype(Env env,
Value var,
java.lang.String type)
Converts the variable to a specified tyep. |
static Value |
stderr_var_dump(Env env,
Value v,
Value[] args)
|
static Value |
strval(Env env,
Value v)
Converts to a string |
static Value |
unserialize(Env env,
StringValue s)
Unserializes the value from a string. |
static Value |
var_dump(Env env,
Value v,
Value[] args)
Prints a debug version of the variable |
static Value |
var_export(Env env,
Value v,
boolean isReturn)
Serializes the value to a string. |
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableModule()
Method Detail |
---|
public static Value constant(Env env, java.lang.String name)
env
- the quercus calling environmentname
- the constant namepublic static Value debug_zval_dump(Env env, Value v)
env
- the quercus calling environmentv
- the variable to print
public static Value define(Env env, StringValue name, Value value, boolean isCaseInsensitive)
env
- the quercus calling environmentname
- the constant namevalue
- the constant valuepublic static boolean defined(Env env, java.lang.String name)
env
- the quercus calling environmentname
- the constant namepublic static Value doubleval(Value v)
v
- the variable to convert
public static boolean empty(Value v)
v
- the value to test
public static Value floatval(Value v)
v
- the variable to convert
public static Value get_defined_vars(Env env)
public static java.lang.String get_resource_type(Env env, Value v)
public static java.lang.String gettype(Value v)
public static boolean import_request_variables(Env env, java.lang.String types, java.lang.String prefix)
types
- the variables to importprefix
- the prefixpublic static Value intval(Value v)
v
- the variable to convert
public static long intval(Value v, int base)
v
- the variable to convert
public static boolean is_array(Value v)
v
- the value to test
public static Value is_bool(Value v)
v
- the value to test
public static boolean is_callable(Env env, Value v, boolean isCheckSyntaxOnly, Value nameRef)
public static boolean is_double(Value v)
v
- the value to test
public static boolean is_float(Value v)
v
- the value to test
public static Value is_int(Value v)
v
- the value to test
public static Value is_integer(Value v)
v
- the value to test
public static Value is_long(Value v)
v
- the value to test
public static boolean is_null(Value v)
v
- the value to test
public static boolean is_numeric(Env env, Value v)
env
- the calling environmentv
- the value to test
public static boolean is_object(Env env, Value v)
env
- the calling environmentv
- the value to test
public static boolean is_real(Value v)
v
- the value to test
public boolean is_resource(Value value)
public static boolean is_scalar(Value v)
v
- the value to test
public boolean is_string(Value value)
public static boolean isset(Value... values)
public static Value print_r(Env env, Value v, boolean isReturn)
env
- the quercus calling environmentv
- the variable to printisReturn
- set to true if returning instead of printing value
public static java.lang.String serialize(Env env, Value v)
public static boolean settype(Env env, Value var, java.lang.String type)
public static Value strval(Env env, Value v)
env
- the quercus calling environmentv
- the variable to convert
public static Value unserialize(Env env, StringValue s)
public static Value var_dump(Env env, Value v, Value[] args)
env
- the quercus calling environmentv
- the variable to print
public static Value stderr_var_dump(Env env, Value v, Value[] args)
public static Value var_export(Env env, Value v, boolean isReturn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |