Documentation

Interface Phalcon\FilterInterface

Source on GitHub

Phalcon\FilterInterface initializer

Methods

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

Adds a user-defined filter

abstract public mixed sanitize (mixed $value, mixed $filters, [unknown $recursive], [array $options], [unknown $recursiveLevel])

Sanizites a value with a specified single or set of filters

abstract public object[] getFilters ()

Return the user-defined filters in the instance