PHP Class Airship\Engine\Security\Filter\StringFilter

Inheritance: extends InputFilter
Show file Open project: paragonie/airship

Protected Properties

Property Type Description
$default mixed
$pattern string
$type string

Public Methods

Method Description
applyCallbacks ( mixed $data = null, integer $offset ) : mixed Apply all of the callbacks for this filter.
nonEmpty ( string $input ) : string
setPattern ( string $pattern = '' ) : self Set a regular expression pattern that the input string must match.

Method Details

applyCallbacks() public method

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

nonEmpty() public static method

public static nonEmpty ( string $input ) : string
$input string
return string

setPattern() public method

Set a regular expression pattern that the input string must match.
public setPattern ( string $pattern = '' ) : self
$pattern string
return self

Property Details

$default protected property

protected mixed $default
return mixed

$pattern protected property

protected string $pattern
return string

$type protected property

protected string $type
return string