\org_openpsa_core_filter

Helper class that encapsulates a single query filter

Summary

Methods
Properties
Constants
apply()
add_head_elements()
render()
set_label()
$name
No constants found
_render_actions()
$_selection
$_label
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

The filter's unique name

Type

string

$_selection

$_selection : array

The filter selection, if any

Type

array

$_label

$_label : string

The filter label

Type

string

Methods

apply()

apply(array  $selection, \midcom_core_query  $query) 

Apply filter to given query

Parameters

array $selection

The filter selection

\midcom_core_query $query

The query object

add_head_elements()

add_head_elements() 

render()

render() 

Renders the filter widget according to mode

set_label()

set_label(  $label) 

Parameters

$label

_render_actions()

_render_actions()