DataFilter
class DataFilter (View source)
Methods
static int
filterInteger(array $int, array $min = ~PHP_INT_MAX, array $max = PHP_INT_MAX, array $default = 0)
Filter an integer.
static int
filterPort(array $port, array $default = 80)
Filter a TCP/UDP port
static array
filterBoolean(array $bool, array $default = false)
filter a bool.
Details
at line 32
static int
filterInteger(array $int, array $min = ~PHP_INT_MAX, array $max = PHP_INT_MAX, array $default = 0)
Filter an integer.
This method is a shortcut to filter_var using FILTER_VALIDATE_INT
at line 51
static int
filterPort(array $port, array $default = 80)
Filter a TCP/UDP port
at line 66
static array
filterBoolean(array $bool, array $default = false)
filter a bool.
This method is a shortcut to filter_var using FILTER_VALIDATE_BOOLEAN