Filters facade
From Sunhill Framework Documentation
clearFilters()
Clears the list of registered filters.
addFilters($filters)
Adds a filter to the filter list.
getFiltersByGroup(string $group): array
Returns all filters that belong to a certain group.
executeFilters(array $filters, FilterContainer $container): string
Takes a list of filters and executes them on the given container. This method has three possible results:
- INSUFFICIENT = There was no error but the execution of the filter chain was not sufficient.
- SUCCESS = The filter chain was executed sucessfully.
- FAILURE = Something went wrong and the filter chain couln't be executed.
execute(string $group, FilterContainer $container): string
Combination of getFiltersByGroup() and executeFilters().