20 public const TYPE =
'send_unselected_if_any';
45 $groupDefinition[
'isFullCoverage'] =
true;
46 $groupDefinition[
'type'] = self::TYPE;
48 parent::__construct( $groupDefinition );
65 $this->filters[$filter->
getName()] = $filter;
72 &$tables, &$fields, &$conds, &$query_options, &$join_conds,
77 if ( $filter->isActive( $opts, $isStructuredFiltersEnabled ) ) {
78 $filter->modifyQuery( $dbr, $specialPage, $tables, $fields, $conds,
79 $query_options, $join_conds );
90 $defaultValue = $allowDefaults ? $filter->getDefault( $isStructuredFiltersEnabled ) :
false;
91 $opts->
add( $filter->getName(), $defaultValue );
If the group is active, any unchecked filters will translate to hide parameters in the URL.
const TYPE
Type marker, used by JavaScript.
modifyQuery(IReadableDatabase $dbr, ChangesListSpecialPage $specialPage, &$tables, &$fields, &$conds, &$query_options, &$join_conds, FormOptions $opts, $isStructuredFiltersEnabled)
Modifies the query to include the filter group.The modification is only done if the filter group is i...
registerFilter(ChangesListBooleanFilter $filter)
Registers a filter in this group.
__construct(array $groupDefinition)
Create a new filter group with the specified configuration.
addOptions(FormOptions $opts, $allowDefaults, $isStructuredFiltersEnabled)
All the options represented by this filter group to $opts.
createFilter(array $filterDefinition)
Creates a filter of the appropriate type for this group, from the definition.ChangesListFilter Filter
Represents a hide-based boolean filter (used on ChangesListSpecialPage and descendants)
Represents a filter group (used on ChangesListSpecialPage and descendants)
Special page which uses a ChangesList to show query results.