PHP Класс FOF30\Input\Input

Наследование: extends JInput
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__call ( mixed $name, string $arguments ) : boolean Magic method to get filtered input data.
__construct ( array | string | object | null $source = null, array $options = [] ) Public constructor. Overridden to allow specifying the global input array to use as a string and instantiate from an object holding variables.
get ( string $name, mixed $default = null, string $filter = 'cmd', integer $mask ) : mixed Gets a value from the input data. Overridden to allow specifying a filter mask.
getData ( ) : array Returns a copy of the raw data stored in the class

Защищенные методы

Метод Описание
_cleanVar ( mixed $var, integer $mask, string $type = null ) : mixed Custom filter implementation. Works better with arrays and allows the use of a filter mask.

Описание методов

__call() публичный Метод

Magic method to get filtered input data.
public __call ( mixed $name, string $arguments ) : boolean
$name mixed Name of the value to get.
$arguments string [0] The name of the variable [1] The default value [2] Mask
Результат boolean The filtered boolean input value.

__construct() публичный Метод

Public constructor. Overridden to allow specifying the global input array to use as a string and instantiate from an object holding variables.
public __construct ( array | string | object | null $source = null, array $options = [] )
$source array | string | object | null Source data; set null to use $_REQUEST
$options array Filter options

_cleanVar() защищенный Метод

Custom filter implementation. Works better with arrays and allows the use of a filter mask.
protected _cleanVar ( mixed $var, integer $mask, string $type = null ) : mixed
$var mixed The variable (value) to clean
$mask integer The clean mask
$type string The variable type
Результат mixed

get() публичный Метод

Gets a value from the input data. Overridden to allow specifying a filter mask.
public get ( string $name, mixed $default = null, string $filter = 'cmd', integer $mask ) : mixed
$name string Name of the value to get.
$default mixed Default value to return if variable does not exist.
$filter string Filter to apply to the value.
$mask integer The filter mask
Результат mixed The filtered input value.

getData() публичный Метод

Returns a copy of the raw data stored in the class
public getData ( ) : array
Результат array