W3cubDocs

/Phalcon 2

Interface Phalcon\FilterInterface

Phalcon\FilterInterface initializer

Methods

abstract public Phalcon\FilterInterface add (string $name, callable $handler)

Adds a user-defined filter

abstract public mixed sanitize (mixed $value, mixed $filters)

Sanizites a value with a specified single or set of filters

abstract public object[] getFilters ()

Return the user-defined filters in the instance

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_FilterInterface.html