public class IniDefinition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IniDefinition.Runtime |
static class |
IniDefinition.Type |
static class |
IniDefinition.Unsupported |
Modifier and Type | Field and Description |
---|---|
static IniDefinition |
NULL |
static int |
PHP_INI_ALL |
static int |
PHP_INI_PERDIR |
static int |
PHP_INI_SYSTEM |
static int |
PHP_INI_USER |
Constructor and Description |
---|
IniDefinition(java.lang.String name,
IniDefinition.Type type,
Value deflt,
int scope) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAsBoolean(Env env) |
boolean |
getAsBoolean(QuercusContext quercus) |
BooleanValue |
getAsBooleanValue(Env env) |
BooleanValue |
getAsBooleanValue(QuercusContext quercus) |
long |
getAsLong(Env env) |
long |
getAsLongBytes(Env env,
long deflt) |
LongValue |
getAsLongValue(Env env) |
LongValue |
getAsLongValue(QuercusContext quercus) |
java.lang.String |
getAsString(Env env) |
java.lang.String |
getAsString(QuercusContext quercus) |
StringValue |
getAsStringValue(Env env) |
StringValue |
getAsStringValue(QuercusContext quercus) |
protected Value |
getDefault()
Returns the default value of the ini definition.
|
protected java.lang.String |
getName()
Returns the name of the ini definition.
|
int |
getScope()
Returns the scope in which the value of the ini variable can be set.
|
Value |
getValue(Env env)
Returns the value set for name, the first oof the local value set for the
environment, the global configuration value set for quercus, or the default
from the definition.
|
Value |
getValue(QuercusContext quercus)
Returns the value set for name, or the default from the definition if
it has not been set.
|
boolean |
isRuntimeDefinition()
Returns true if this definition was added at runtime and not
definied by a module.
|
void |
set(Env env,
java.lang.String value)
Set the ini value for the given scope.
|
void |
set(Env env,
Value value)
Set the ini value for the given scope.
|
protected void |
set(java.util.HashMap<java.lang.String,Value> map,
int scope,
Value value)
Set the ini value for the given scope.
|
void |
set(QuercusContext quercus,
java.lang.String s)
Set the ini value for the given scope.
|
void |
set(QuercusContext quercus,
Value value)
Set the ini value for the given scope.
|
public static final int PHP_INI_USER
public static final int PHP_INI_PERDIR
public static final int PHP_INI_SYSTEM
public static final int PHP_INI_ALL
public static IniDefinition NULL
public IniDefinition(java.lang.String name, IniDefinition.Type type, Value deflt, int scope)
protected java.lang.String getName()
protected Value getDefault()
public int getScope()
public boolean isRuntimeDefinition()
public void set(QuercusContext quercus, Value value)
public void set(QuercusContext quercus, java.lang.String s)
public void set(Env env, java.lang.String value)
protected void set(java.util.HashMap<java.lang.String,Value> map, int scope, Value value)
public Value getValue(QuercusContext quercus)
public Value getValue(Env env)
public StringValue getAsStringValue(QuercusContext quercus)
public StringValue getAsStringValue(Env env)
public java.lang.String getAsString(Env env)
public java.lang.String getAsString(QuercusContext quercus)
public boolean getAsBoolean(QuercusContext quercus)
public boolean getAsBoolean(Env env)
public BooleanValue getAsBooleanValue(QuercusContext quercus)
public BooleanValue getAsBooleanValue(Env env)
public LongValue getAsLongValue(QuercusContext quercus)
public long getAsLong(Env env)
public long getAsLongBytes(Env env, long deflt)