*/
class ChangesListStringOptionsFilter extends ChangesListFilter {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function displaysOnUnstructuredUi() {
return false;
}
+
+ /**
+ * @inheritDoc
+ */
+ public function isSelected( FormOptions $opts ) {
+ $option = $opts[ $this->getGroup()->getName() ];
+ if ( $option === ChangesListStringOptionsFilterGroup::ALL ) {
+ return true;
+ }
+
+ $values = explode( ChangesListStringOptionsFilterGroup::SEPARATOR, $option );
+ return in_array( $this->getName(), $values );
+ }
}