MediaWiki
1.34.0
|
If the group is active, any unchecked filters will translate to hide parameters in the URL. More...
Public Member Functions | ||||||||||||||||||||||||||||
__construct (array $groupDefinition) | ||||||||||||||||||||||||||||
Create a new filter group with the specified configuration. More... | ||||||||||||||||||||||||||||
addOptions (FormOptions $opts, $allowDefaults, $isStructuredFiltersEnabled) | ||||||||||||||||||||||||||||
All the options represented by this filter group to $opts.
| ||||||||||||||||||||||||||||
modifyQuery (IDatabase $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 in effect. This means that one or more valid and allowed filters were selected.
| ||||||||||||||||||||||||||||
registerFilter (ChangesListBooleanFilter $filter) | ||||||||||||||||||||||||||||
Registers a filter in this group. More... | ||||||||||||||||||||||||||||
Public Member Functions inherited from ChangesListFilterGroup | ||||||||||||||||||||||||||||
anySelected (FormOptions $opts) | ||||||||||||||||||||||||||||
Check if any filter in this group is selected. More... | ||||||||||||||||||||||||||||
conflictsWith ( $other, $globalKey, $forwardKey, $backwardKey) | ||||||||||||||||||||||||||||
Marks that the given ChangesListFilterGroup or ChangesListFilter conflicts with this object. More... | ||||||||||||||||||||||||||||
getConflictingFilters () | ||||||||||||||||||||||||||||
Get filters conflicting with this filter group. More... | ||||||||||||||||||||||||||||
getConflictingGroups () | ||||||||||||||||||||||||||||
Get groups conflicting with this filter group. More... | ||||||||||||||||||||||||||||
getFilter ( $name) | ||||||||||||||||||||||||||||
Get filter by name. More... | ||||||||||||||||||||||||||||
getFilters () | ||||||||||||||||||||||||||||
getJsData () | ||||||||||||||||||||||||||||
Gets the JS data in the format required by the front-end of the structured UI. More... | ||||||||||||||||||||||||||||
getName () | ||||||||||||||||||||||||||||
getPriority () | ||||||||||||||||||||||||||||
getTitle () | ||||||||||||||||||||||||||||
getType () | ||||||||||||||||||||||||||||
setUnidirectionalConflict ( $other, $globalDescription, $contextDescription) | ||||||||||||||||||||||||||||
Marks that the given ChangesListFilterGroup or ChangesListFilter conflicts with this object. More... | ||||||||||||||||||||||||||||
Public Attributes | |
const | TYPE = 'send_unselected_if_any' |
Type marker, used by JavaScript. More... | |
Public Attributes inherited from ChangesListFilterGroup | |
const | DEFAULT_PRIORITY = -100 |
const | RESERVED_NAME_CHAR = '_' |
Protected Member Functions | ||||
createFilter (array $filterDefinition) | ||||
Creates a filter of the appropriate type for this group, from the definition.
| ||||
Additional Inherited Members | |
Protected Attributes inherited from ChangesListFilterGroup | |
$conflictingFilters = [] | |
Array of associative arrays with conflict information. More... | |
$conflictingGroups = [] | |
Array of associative arrays with conflict information. More... | |
$filters | |
Associative array of filters, as ChangesListFilter objects, with filter name as key. More... | |
$isFullCoverage | |
Whether this group is full coverage. More... | |
$name | |
Name (internal identifier) More... | |
$priority | |
Priority integer. More... | |
$title | |
i18n key for title More... | |
$type | |
Type, from a TYPE constant of a subclass. More... | |
$whatsThisBody | |
i18n key for body of What's This? More... | |
$whatsThisHeader | |
i18n key for header of What's This? More... | |
$whatsThisLinkText | |
i18n key for What's This? link More... | |
$whatsThisUrl | |
URL of What's This? link. More... | |
If the group is active, any unchecked filters will translate to hide parameters in the URL.
E.g. if 'Human (not bot)' is checked, but 'Bot' is unchecked, hidebots=1 will be sent.
Definition at line 13 of file ChangesListBooleanFilterGroup.php.
ChangesListBooleanFilterGroup::__construct | ( | array | $groupDefinition | ) |
Create a new filter group with the specified configuration.
array | $groupDefinition | Configuration of group
|
Reimplemented from ChangesListFilterGroup.
Definition at line 41 of file ChangesListBooleanFilterGroup.php.
References TYPE.
ChangesListBooleanFilterGroup::addOptions | ( | FormOptions | $opts, |
$allowDefaults, | |||
$isStructuredFiltersEnabled | |||
) |
All the options represented by this filter group to $opts.
FormOptions | $opts | |
bool | $allowDefaults | |
bool | $isStructuredFiltersEnabled |
Reimplemented from ChangesListFilterGroup.
Definition at line 84 of file ChangesListBooleanFilterGroup.php.
References $filter, FormOptions\add(), and ChangesListFilterGroup\getFilters().
|
protected |
Creates a filter of the appropriate type for this group, from the definition.
array | $filterDefinition | Filter definition |
Reimplemented from ChangesListFilterGroup.
Definition at line 51 of file ChangesListBooleanFilterGroup.php.
ChangesListBooleanFilterGroup::modifyQuery | ( | IDatabase | $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 in effect. This means that one or more valid and allowed filters were selected.
IDatabase | $dbr | Database, for addQuotes, makeList, and similar |
ChangesListSpecialPage | $specialPage | Current special page |
array | &$tables | Array of tables; see IDatabase::select $table |
array | &$fields | Array of fields; see IDatabase::select $vars |
array | &$conds | Array of conditions; see IDatabase::select $conds |
array | &$query_options | Array of query options; see IDatabase::select $options |
array | &$join_conds | Array of join conditions; see IDatabase::select $join_conds |
FormOptions | $opts | Wrapper for the current request options and their defaults |
bool | $isStructuredFiltersEnabled | True if the Structured UI is currently enabled |
Reimplemented from ChangesListFilterGroup.
Definition at line 68 of file ChangesListBooleanFilterGroup.php.
References $dbr, $filter, and ChangesListFilterGroup\getFilters().
ChangesListBooleanFilterGroup::registerFilter | ( | ChangesListBooleanFilter | $filter | ) |
Registers a filter in this group.
ChangesListBooleanFilter | $filter | PhanParamSignaturePHPDocMismatchHasParamType,PhanParamSignatureMismatch |
Definition at line 61 of file ChangesListBooleanFilterGroup.php.
References $filter.
const ChangesListBooleanFilterGroup::TYPE = 'send_unselected_if_any' |
Type marker, used by JavaScript.
Definition at line 17 of file ChangesListBooleanFilterGroup.php.
Referenced by __construct().