Filters facade

From Sunhill Framework Documentation

clearFilters()

addFilters($filters)

getFiltersByGroup(string $group): array

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