PHP 클래스 Airship\Engine\Security\Filter\InputFilter

상속: implements Airship\Engine\Contract\Security\FilterInterface
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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