Filter
in package
implements
FilterInterface
AbstractYes
Base class for all filters
Table of Contents
Interfaces
- FilterInterface
- Variable filter interface
Properties
- $params : array<string|int, mixed>
- Filter params
Methods
- __construct() : mixed
- Constructor
- filterValue() : mixed
- Callback run if filter type is FILTER_CALLBACK
- getType() : mixed
- Should return filter type
- processFilter() : mixed
- Process filter
Properties
$params
Filter params
protected
array<string|int, mixed>
$params
= []
Methods
__construct()
Constructor
public
__construct([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
filterValue()
Callback run if filter type is FILTER_CALLBACK
public
filterValue(mixed $value) : mixed
Parameters
- $value : mixed
getType()
Should return filter type
public
abstract getType() : mixed
processFilter()
Process filter
public
processFilter(mixed $value) : mixed
Parameters
- $value : mixed