MediaWiki REL1_35
ChangesListStringOptionsFilter.php
Go to the documentation of this file.
1<?php
2
14 public function displaysOnUnstructuredUi() {
15 return false;
16 }
17
21 public function isSelected( FormOptions $opts ) {
22 $option = $opts[ $this->getGroup()->getName() ];
24 return true;
25 }
26
27 $values = explode( ChangesListStringOptionsFilterGroup::SEPARATOR, $option );
28 return in_array( $this->getName(), $values );
29 }
30}
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
Helper class to keep track of options when mixing links and form elements.