MediaWiki REL1_31
|
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. | |
addOptions (FormOptions $opts, $allowDefaults, $isStructuredFiltersEnabled) | |
@inheritDoc | |
modifyQuery (IDatabase $dbr, ChangesListSpecialPage $specialPage, &$tables, &$fields, &$conds, &$query_options, &$join_conds, FormOptions $opts, $isStructuredFiltersEnabled) | |
@inheritDoc | |
registerFilter (ChangesListBooleanFilter $filter) | |
Registers a filter in this group. | |
![]() | |
anySelected (FormOptions $opts) | |
Check if any filter in this group is selected. | |
conflictsWith ( $other, $globalKey, $forwardKey, $backwardKey) | |
Marks that the given ChangesListFilterGroup or ChangesListFilter conflicts with this object. | |
getConflictingFilters () | |
Get filters conflicting with this filter group. | |
getConflictingGroups () | |
Get groups conflicting with this filter group. | |
getFilter ( $name) | |
Get filter by name. | |
getFilters () | |
getJsData () | |
Gets the JS data in the format required by the front-end of the structured UI. | |
getName () | |
getPriority () | |
getTitle () | |
getType () | |
setUnidirectionalConflict ( $other, $globalDescription, $contextDescription) | |
Marks that the given ChangesListFilterGroup or ChangesListFilter conflicts with this object. | |
Public Attributes | |
const | TYPE = 'send_unselected_if_any' |
Type marker, used by JavaScript. | |
![]() | |
const | DEFAULT_PRIORITY = -100 |
const | RESERVED_NAME_CHAR = '_' |
Protected Member Functions | |
createFilter (array $filterDefinition) | |
@inheritDoc | |
Additional Inherited Members | |
![]() | |
$conflictingFilters = [] | |
Array of associative arrays with conflict information. | |
$conflictingGroups = [] | |
Array of associative arrays with conflict information. | |
$filters | |
Associative array of filters, as ChangesListFilter objects, with filter name as key. | |
$isFullCoverage | |
Whether this group is full coverage. | |
$name | |
Name (internal identifier) | |
$priority | |
Priority integer. | |
$title | |
i18n key for title | |
$type | |
Type, from a TYPE constant of a subclass. | |
$whatsThisBody | |
i18n key for body of What's This? | |
$whatsThisHeader | |
i18n key for header of What's This? | |
$whatsThisLinkText | |
i18n key for What's This? link | |
$whatsThisUrl | |
URL of What's This? link. | |
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 12 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 40 of file ChangesListBooleanFilterGroup.php.
References TYPE.
ChangesListBooleanFilterGroup::addOptions | ( | FormOptions | $opts, |
$allowDefaults, | |||
$isStructuredFiltersEnabled ) |
@inheritDoc
Reimplemented from ChangesListFilterGroup.
Definition at line 82 of file ChangesListBooleanFilterGroup.php.
References FormOptions\add(), and ChangesListFilterGroup\getFilters().
|
protected |
@inheritDoc
Reimplemented from ChangesListFilterGroup.
Definition at line 50 of file ChangesListBooleanFilterGroup.php.
ChangesListBooleanFilterGroup::modifyQuery | ( | IDatabase | $dbr, |
ChangesListSpecialPage | $specialPage, | ||
& | $tables, | ||
& | $fields, | ||
& | $conds, | ||
& | $query_options, | ||
& | $join_conds, | ||
FormOptions | $opts, | ||
$isStructuredFiltersEnabled ) |
@inheritDoc
Reimplemented from ChangesListFilterGroup.
Definition at line 66 of file ChangesListBooleanFilterGroup.php.
References $dbr, $tables, and ChangesListFilterGroup\getFilters().
ChangesListBooleanFilterGroup::registerFilter | ( | ChangesListBooleanFilter | $filter | ) |
Registers a filter in this group.
ChangesListBooleanFilter | $filter |
Definition at line 59 of file ChangesListBooleanFilterGroup.php.
References ChangesListFilter\getName().
const ChangesListBooleanFilterGroup::TYPE = 'send_unselected_if_any' |
Type marker, used by JavaScript.
Definition at line 16 of file ChangesListBooleanFilterGroup.php.
Referenced by __construct(), ChangesListBooleanFilterGroupTest\testGetJsData(), and ChangesListSpecialPageTest\testGetStructuredFilterJsData().