Class to handle query filters Filters are saved to current user in the parameter field

package org.openpsa.core

 Methods

__construct (string $identifier)

Constructor

Parameters

$identifier

stringThe QF's identifier

add_filter (\org_openpsa_core_filter $filter)

Adds a filter to the queue

Parameters

$filter

\org_openpsa_core_filterThe filter to add

apply_filters (\midcom_core_query $query)

Apply registered filters to query object

Parameters

$query

\midcom_core_querythe query object

render ()

Renders the UI for the currently registered filters

_get_selection (string $filtername)

Queries multiple sources for filter selection information

Parameters

$filtername

stringThe filter name to query

Returns

arrayThe selected options, if any

 Properties

 

array $_filters

Currently registered filters
 

string $_identifier

The queryfilter's identifier
 

mixed $_selection