com.caucho.quercus.lib.filter
Class FilterModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.filter.FilterModule
All Implemented Interfaces:
QuercusModule

public class FilterModule
extends AbstractQuercusModule


Field Summary
static java.util.HashMap<java.lang.Integer,Filter> _filterMap
           
static int FILTER_DEFAULT
           
static int FILTER_FLAG_ALLOW_OCTAL
           
static int FILTER_FLAG_ALLOW_THOUSAND
           
static int FILTER_FLAG_ENCODE_AMP
           
static int FILTER_FLAG_ENCODE_HIGH
           
static int FILTER_FLAG_ENCODE_LOW
           
static int FILTER_FLAG_IPV4
           
static int FILTER_FLAG_IPV6
           
static int FILTER_FLAG_NO_ENCODE_QUOTES
           
static int FILTER_FLAG_NO_PRIV_RANGE
           
static int FILTER_FLAG_NO_RES_RANGE
           
static int FILTER_FLAG_STRIP_HIGH
           
static int FILTER_FLAG_STRIP_LOW
           
static int FILTER_NULL_ON_FAILURE
           
static int FILTER_SANITIZE_EMAIL
           
static int FILTER_SANITIZE_STRING
           
static int FILTER_VALIDATE_BOOLEAN
           
static int FILTER_VALIDATE_EMAIL
           
static int FILTER_VALIDATE_FLOAT
           
static int FILTER_VALIDATE_INT
           
static int FILTER_VALIDATE_IP
           
static int INPUT_COOKIE
           
static int INPUT_ENV
           
static int INPUT_GET
           
static int INPUT_POST
           
static int INPUT_SERVER
           
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
FilterModule()
           
 
Method Summary
static Value filter_input(Env env, int type, StringValue name, int filterId, Value flagV)
           
static Value filter_var(Env env, Value value, int filterId, Value flagV)
           
 java.lang.String[] getLoadedExtensions()
          Returns the extensions loaded by the module.
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_POST

public static final int INPUT_POST
See Also:
Constant Field Values

INPUT_GET

public static final int INPUT_GET
See Also:
Constant Field Values

INPUT_COOKIE

public static final int INPUT_COOKIE
See Also:
Constant Field Values

INPUT_ENV

public static final int INPUT_ENV
See Also:
Constant Field Values

INPUT_SERVER

public static final int INPUT_SERVER
See Also:
Constant Field Values

FILTER_VALIDATE_INT

public static final int FILTER_VALIDATE_INT
See Also:
Constant Field Values

FILTER_VALIDATE_BOOLEAN

public static final int FILTER_VALIDATE_BOOLEAN
See Also:
Constant Field Values

FILTER_VALIDATE_FLOAT

public static final int FILTER_VALIDATE_FLOAT
See Also:
Constant Field Values

FILTER_VALIDATE_EMAIL

public static final int FILTER_VALIDATE_EMAIL
See Also:
Constant Field Values

FILTER_VALIDATE_IP

public static final int FILTER_VALIDATE_IP
See Also:
Constant Field Values

FILTER_SANITIZE_STRING

public static final int FILTER_SANITIZE_STRING
See Also:
Constant Field Values

FILTER_DEFAULT

public static final int FILTER_DEFAULT
See Also:
Constant Field Values

FILTER_SANITIZE_EMAIL

public static final int FILTER_SANITIZE_EMAIL
See Also:
Constant Field Values

FILTER_FLAG_ALLOW_OCTAL

public static final int FILTER_FLAG_ALLOW_OCTAL
See Also:
Constant Field Values

FILTER_FLAG_STRIP_LOW

public static final int FILTER_FLAG_STRIP_LOW
See Also:
Constant Field Values

FILTER_FLAG_STRIP_HIGH

public static final int FILTER_FLAG_STRIP_HIGH
See Also:
Constant Field Values

FILTER_FLAG_ENCODE_LOW

public static final int FILTER_FLAG_ENCODE_LOW
See Also:
Constant Field Values

FILTER_FLAG_ENCODE_HIGH

public static final int FILTER_FLAG_ENCODE_HIGH
See Also:
Constant Field Values

FILTER_FLAG_ENCODE_AMP

public static final int FILTER_FLAG_ENCODE_AMP
See Also:
Constant Field Values

FILTER_FLAG_NO_ENCODE_QUOTES

public static final int FILTER_FLAG_NO_ENCODE_QUOTES
See Also:
Constant Field Values

FILTER_FLAG_ALLOW_THOUSAND

public static final int FILTER_FLAG_ALLOW_THOUSAND
See Also:
Constant Field Values

FILTER_NULL_ON_FAILURE

public static final int FILTER_NULL_ON_FAILURE
See Also:
Constant Field Values

FILTER_FLAG_IPV4

public static final int FILTER_FLAG_IPV4
See Also:
Constant Field Values

FILTER_FLAG_IPV6

public static final int FILTER_FLAG_IPV6
See Also:
Constant Field Values

FILTER_FLAG_NO_RES_RANGE

public static final int FILTER_FLAG_NO_RES_RANGE
See Also:
Constant Field Values

FILTER_FLAG_NO_PRIV_RANGE

public static final int FILTER_FLAG_NO_PRIV_RANGE
See Also:
Constant Field Values

_filterMap

public static java.util.HashMap<java.lang.Integer,Filter> _filterMap
Constructor Detail

FilterModule

public FilterModule()
Method Detail

getLoadedExtensions

public java.lang.String[] getLoadedExtensions()
Description copied from class: AbstractQuercusModule
Returns the extensions loaded by the module.

Specified by:
getLoadedExtensions in interface QuercusModule
Overrides:
getLoadedExtensions in class AbstractQuercusModule

filter_var

public static Value filter_var(Env env,
                               Value value,
                               int filterId,
                               Value flagV)

filter_input

public static Value filter_input(Env env,
                                 int type,
                                 StringValue name,
                                 int filterId,
                                 Value flagV)