__construct()
__get()
__isset()
cleanString()
filter()
filterSingle()
getInput()
inRequest()
rawFilter()
_doClean()
$_DEFAULTS
$_cleanedVariables
$_request
$_sourceData
$_strClean
ARRAY_SIMPLE
BINARY
DATE_TIME
FLOAT
INT
JSON_ARRAY
NUM
STRING
UINT
UNUM
Input Filtering Class
package | XenForo_Core |
---|
__construct(\Zend_Controller_Request_Http | array $source)
\Zend_Controller_Request_Http
array
Source of input
__get($key)
__isset($key)
cleanString(string $string) : string
Characters may not strictly be invalid, but can cause confusion/bugs.
string
string
filter(array $filters) : array
array
Key-value pairs with the value being in the format expected by filterSingle. {@link XenForo_Input::filterSingle()}
array
key-value pairs with the cleaned valuefilterSingle(string $variableName, mixed $filterData, array $options) : mixed
string
Name of the input variable
mixed
Filter information, can be a single constant or an array containing a filter and options
array
Filtering options
mixed
Value after being cleanedgetInput() : array
array
inRequest(string $key) : boolean
string
boolean
rawFilter(mixed $data, \constant $filterName, array $options) : mixed
mixed
\constant
array
mixed
_doClean($filterName, array $filterOptions, $data, $defaultData)
$_DEFAULTS : array
$_cleanedVariables : array
Key is the variable name as it was pulled
$_request : \Zend_Controller_Request_Http | null
May be null if source data is populated instead
$_sourceData : array | null
$_strClean : array
ARRAY_SIMPLE
BINARY
DATE_TIME
FLOAT
INT
JSON_ARRAY
NUM
STRING
UINT
UNUM