4.7.1. Getting Started

4.7.1.1. Terminology

Unfortunately, there are not many common terms shared between filtering/validating/etc. libraries. To clear up misconception, this library uses the following definitions:

This library also makes a distinction between a "value" filter and a "subject" filter:

4.7.1.2. Filter Container

The easiest way to interact with the filter system is via the FilterFactory. Instantiate it first; you can then get filter objects from it:

use Aura\Filter\FilterFactory;

$filter_factory = new FilterFactory();

$filter = $filter_factory->newValueFilter();
$filter = $filter_factory->newSubjectFilter();