PHP Class Airship\Engine\Security\Filter\InputFilter

Inheritance: implements Airship\Engine\Contract\Security\FilterInterface
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$callbacks callable[]
$default mixed
$index (for debugging purposes)
$type string

Méthodes publiques

Méthode Description
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)

Method Details

addCallback() public méthode

Add a callback to this filter (supports more than one)
public addCallback ( callable $func ) : Airship\Engine\Contract\Security\FilterInterface
$func callable
Résultat Airship\Engine\Contract\Security\FilterInterface

applyCallbacks() public méthode

Apply all of the callbacks for this filter.
public applyCallbacks ( mixed $data = null, integer $offset ) : mixed
$data mixed
$offset integer
Résultat mixed

process() public méthode

Process data using the filter rules.
public process ( mixed $data = null ) : mixed
$data mixed
Résultat mixed

setDefault() public méthode

Set the default value (not applicable to booleans)
public setDefault ( mixed $value ) : Airship\Engine\Contract\Security\FilterInterface
$value mixed
Résultat Airship\Engine\Contract\Security\FilterInterface

setIndex() public méthode

public setIndex ( string $index ) : Airship\Engine\Contract\Security\FilterInterface
$index string
Résultat Airship\Engine\Contract\Security\FilterInterface

setType() public méthode

Sets the expected input type (e.g. string, boolean)
public setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface
$typeIndicator string
Résultat Airship\Engine\Contract\Security\FilterInterface

Property Details

$callbacks protected_oe property

protected callable[] $callbacks
Résultat callable[]

$default protected_oe property

protected mixed $default
Résultat mixed

$index protected_oe property

(for debugging purposes)
protected $index

$type protected_oe property

protected string $type
Résultat string