\org_openpsa_core_queryfilter

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

Summary

Methods
Properties
Constants
__construct()
add_filter()
apply_filters()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_get_selection()
$_filters
$_identifier
N/A

Properties

$_filters

$_filters : array<mixed,\org_openpsa_core_filter>

Currently registered filters

Type

array<mixed,\org_openpsa_core_filter>

$_identifier

$_identifier : string

The queryfilter's identifier

Type

string

Methods

__construct()

__construct(string  $identifier) 

Constructor

Parameters

string $identifier

The QF's identifier

add_filter()

add_filter(\org_openpsa_core_filter  $filter) 

Adds a filter to the queue

Parameters

\org_openpsa_core_filter $filter

The filter to add

apply_filters()

apply_filters(\midcom_core_query  $query) 

Apply registered filters to query object

Parameters

\midcom_core_query $query

the query object

render()

render() 

Renders the UI for the currently registered filters

_get_selection()

_get_selection(string  $filtername) : array

Queries multiple sources for filter selection information

Parameters

string $filtername

The filter name to query

Returns

array —

The selected options, if any