|
MediaWiki master
|
If the group is active, any unchecked filters will translate to hide parameters in the URL. More...
Inherits MediaWiki\RecentChanges\ChangesListFilterGroup.

Public Member Functions | ||||||||||||||||||||||||||||
| __construct (array $groupDefinition) | ||||||||||||||||||||||||||||
| Create a new filter group with the specified configuration. | ||||||||||||||||||||||||||||
| addOptions (FormOptions $opts, $allowDefaults, $isStructuredFiltersEnabled) | ||||||||||||||||||||||||||||
Add all the options represented by this filter group to $opts.
| ||||||||||||||||||||||||||||
| modifyQuery (IReadableDatabase $dbr, ChangesListSpecialPage $specialPage, &$tables, &$fields, &$conds, &$query_options, &$join_conds, FormOptions $opts, $isStructuredFiltersEnabled) | ||||||||||||||||||||||||||||
Modifies the query to include the filter group (legacy interface).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. | ||||||||||||||||||||||||||||
| setDefault ( $defaultValue) | ||||||||||||||||||||||||||||
Public Member Functions inherited from MediaWiki\RecentChanges\ChangesListFilterGroup | ||||||||||||||||||||||||||||
| anySelected (FormOptions $opts) | ||||||||||||||||||||||||||||
| Check if any filter in this group is selected. | ||||||||||||||||||||||||||||
| conflictsWith ( $other, string $globalKey, string $forwardKey, string $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 () | ||||||||||||||||||||||||||||
| modifyChangesListQuery (ChangesListQuery $query, FormOptions $opts, $isStructuredFiltersEnabled) | ||||||||||||||||||||||||||||
| Modifies the query to include the filter group. | ||||||||||||||||||||||||||||
| 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. | |
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 MediaWiki\RecentChanges\ChangesListFilterGroup | |
| array | $conflictingFilters = [] |
| Array of associative arrays with conflict information. | |
| array | $conflictingGroups = [] |
| Array of associative arrays with conflict information. | |
| ChangesListFilter[] | $filters |
| Associative array of filters, as ChangesListFilter objects, with filter name as key. | |
| bool | $isFullCoverage |
| Whether this group is full coverage. | |
| string | $name |
| Name (internal identifier) | |
| int | $priority |
| Priority integer. | |
| string | $title |
| i18n key for title | |
| string | $type |
| Type, from a TYPE constant of a subclass. | |
| string null | $whatsThisBody |
| i18n key for body of What's This? | |
| string null | $whatsThisHeader |
| i18n key for header of What's This? | |
| string null | $whatsThisLinkText |
| i18n key for What's This? link | |
| string null | $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.
@method ChangesListBooleanFilter[] getFilters() @method ChangesListBooleanFilter|null getFilter( string $name )
Definition at line 20 of file ChangesListBooleanFilterGroup.php.
| MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::__construct | ( | array | $groupDefinition | ) |
Create a new filter group with the specified configuration.
| array | $groupDefinition | Configuration of group
|
Reimplemented from MediaWiki\RecentChanges\ChangesListFilterGroup.
Definition at line 48 of file ChangesListBooleanFilterGroup.php.
References MediaWiki\RecentChanges\ChangesListBooleanFilterGroup\TYPE.
| MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::addOptions | ( | FormOptions | $opts, |
| $allowDefaults, | |||
| $isStructuredFiltersEnabled ) |
Add all the options represented by this filter group to $opts.
| FormOptions | $opts | |
| bool | $allowDefaults | |
| bool | $isStructuredFiltersEnabled |
Reimplemented from MediaWiki\RecentChanges\ChangesListFilterGroup.
Definition at line 110 of file ChangesListBooleanFilterGroup.php.
References MediaWiki\Html\FormOptions\add(), and MediaWiki\RecentChanges\ChangesListFilterGroup\getFilters().
|
protected |
Creates a filter of the appropriate type for this group, from the definition.
| array | $filterDefinition |
Reimplemented from MediaWiki\RecentChanges\ChangesListFilterGroup.
Definition at line 58 of file ChangesListBooleanFilterGroup.php.
| MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::modifyQuery | ( | IReadableDatabase | $dbr, |
| ChangesListSpecialPage | $specialPage, | ||
| & | $tables, | ||
| & | $fields, | ||
| & | $conds, | ||
| & | $query_options, | ||
| & | $join_conds, | ||
| FormOptions | $opts, | ||
| $isStructuredFiltersEnabled ) |
Modifies the query to include the filter group (legacy interface).The modification is only done if the filter group is in effect. This means that one or more valid and allowed filters were selected.
| IReadableDatabase | $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 MediaWiki\RecentChanges\ChangesListFilterGroup.
Definition at line 95 of file ChangesListBooleanFilterGroup.php.
References MediaWiki\RecentChanges\ChangesListFilterGroup\getFilters().
| MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::registerFilter | ( | ChangesListBooleanFilter | $filter | ) |
Registers a filter in this group.
| ChangesListBooleanFilter | $filter |
Definition at line 88 of file ChangesListBooleanFilterGroup.php.
References MediaWiki\RecentChanges\ChangesListFilter\getName().
| MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::setDefault | ( | $defaultValue | ) |
| array | $defaultValue |
Reimplemented from MediaWiki\RecentChanges\ChangesListFilterGroup.
Definition at line 66 of file ChangesListBooleanFilterGroup.php.
References MediaWiki\RecentChanges\ChangesListFilterGroup\$name, and MediaWiki\RecentChanges\ChangesListFilterGroup\getFilter().
| const MediaWiki\RecentChanges\ChangesListBooleanFilterGroup::TYPE = 'send_unselected_if_any' |
Type marker, used by JavaScript.
Definition at line 24 of file ChangesListBooleanFilterGroup.php.
Referenced by MediaWiki\RecentChanges\ChangesListBooleanFilterGroup\__construct().