MediaWiki master
ChangesListStringOptionsFilter.php
Go to the documentation of this file.
1<?php
2
4
6
19 public function displaysOnUnstructuredUi() {
20 return false;
21 }
22
26 public function isSelected( FormOptions $opts ) {
27 $option = $opts[ $this->getGroup()->getName() ];
29 return true;
30 }
31
32 $values = explode( ChangesListStringOptionsFilterGroup::SEPARATOR, $option );
33 return in_array( $this->getName(), $values );
34 }
35}
36
38class_alias( ChangesListStringOptionsFilter::class, 'ChangesListStringOptionsFilter' );
Helper class to keep track of options when mixing links and form elements.
Represents a filter (used on ChangesListSpecialPage and descendants)
const ALL
Signifies that all options in the group are selected.
An individual filter in a ChangesListStringOptionsFilterGroup.
displaysOnUnstructuredUi()
Checks whether the filter should display on the unstructured UI.bool Whether to display
isSelected(FormOptions $opts)
Checks whether this filter is selected in the provided options.bool