PHP Класс Airship\Engine\Security\Filter\InputFilter

Наследование: implements Airship\Engine\Contract\Security\FilterInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$callbacks callable[]
$default mixed
$index (for debugging purposes)
$type string

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

Метод Описание
addCallback ( callable $func ) : Airship\Engine\Contract\Security\FilterInterface Add a callback to this filter (supports more than one)
applyCallbacks ( mixed $data = null, integer $offset ) : mixed Apply all of the callbacks for this filter.
process ( mixed $data = null ) : mixed Process data using the filter rules.
setDefault ( mixed $value ) : Airship\Engine\Contract\Security\FilterInterface Set the default value (not applicable to booleans)
setIndex ( string $index ) : Airship\Engine\Contract\Security\FilterInterface
setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface Sets the expected input type (e.g. string, boolean)

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

addCallback() публичный метод

Add a callback to this filter (supports more than one)
public addCallback ( callable $func ) : Airship\Engine\Contract\Security\FilterInterface
$func callable
Результат Airship\Engine\Contract\Security\FilterInterface

applyCallbacks() публичный метод

Apply all of the callbacks for this filter.
public applyCallbacks ( mixed $data = null, integer $offset ) : mixed
$data mixed
$offset integer
Результат mixed

process() публичный метод

Process data using the filter rules.
public process ( mixed $data = null ) : mixed
$data mixed
Результат mixed

setDefault() публичный метод

Set the default value (not applicable to booleans)
public setDefault ( mixed $value ) : Airship\Engine\Contract\Security\FilterInterface
$value mixed
Результат Airship\Engine\Contract\Security\FilterInterface

setIndex() публичный метод

public setIndex ( string $index ) : Airship\Engine\Contract\Security\FilterInterface
$index string
Результат Airship\Engine\Contract\Security\FilterInterface

setType() публичный метод

Sets the expected input type (e.g. string, boolean)
public setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface
$typeIndicator string
Результат Airship\Engine\Contract\Security\FilterInterface

Описание свойств

$callbacks защищенное свойство

protected callable[] $callbacks
Результат callable[]

$default защищенное свойство

protected mixed $default
Результат mixed

$index защищенное свойство

(for debugging purposes)
protected $index

$type защищенное свойство

protected string $type
Результат string