Merge "Add 3D filetype for STL files"
[lhc/web/wiklou.git] / includes / changes / ChangesListStringOptionsFilter.php
1 <?php
2
3 /**
4 * An individual filter in a ChangesListStringOptionsFilterGroup.
5 *
6 * This filter type will only be displayed on the structured UI currently.
7 *
8 * @since 1.29
9 */
10 class ChangesListStringOptionsFilter extends ChangesListFilter {
11 /**
12 * @inheritdoc
13 */
14 public function displaysOnUnstructuredUi() {
15 return false;
16 }
17
18 /**
19 * @inheritdoc
20 */
21 public function isSelected( FormOptions $opts ) {
22 $values = explode(
23 ChangesListStringOptionsFilterGroup::SEPARATOR,
24 $opts[ $this->getGroup()->getName() ]
25 );
26 return in_array( $this->getName(), $values );
27 }
28 }