\MainWP\Dashboard\Module\LogLog_Filter_Input

Class - Log_Filter_Input

Summary

Methods
Properties
Constants
super()
filter()
is_regex()
is_ip_address()
$filter_callbacks
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$filter_callbacks

$filter_callbacks : array

Callbacks to be used for input validation/sanitation.

Type

array

Methods

super()

super(integer  $type, string  $variable_name, integer  $filter = null, array  $options = array()) : mixed

Returns input variable

Parameters

integer $type

Input type.

string $variable_name

Variable key.

integer $filter

Filter callback.

array $options

Filter callback parameters.

Throws

\Exception

Invalid input type provided.

Returns

mixed

filter()

filter(mixed  $var_value, integer  $filter = null, array  $options = array()) : mixed

Sanitize or validate input.

Parameters

mixed $var_value

Raw input.

integer $filter

Filter callback.

array $options

Filter callback parameters.

Throws

\Exception

Unsupported filter provided.

Returns

mixed

is_regex()

is_regex(string  $var_value) : boolean

Returns whether the variable is a Regular Expression or not?

Parameters

string $var_value

Raw input.

Returns

boolean

is_ip_address()

is_ip_address(string  $var_value) : boolean

Returns whether the variable is an IP address or not?

Parameters

string $var_value

Raw input.

Returns

boolean