|
MediaWiki master
|
The narrow interface passed to filter modules. More...
Inherited by MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Public Member Functions | |
| adjustDensity ( $density) | |
| Adjust the density heuristic by multiplying it by the given factor. | |
| distinct () | |
| Flag that the joins will inadvertently duplicate recentchanges rows and that the query will have to deal with that somehow, maybe by adding a DISTINCT option. | |
| fields ( $fields) | |
| Add fields to the query. | |
| forceEmptySet () | |
| Set a flag forcing the query to return no rows when it is executed. | |
| isEmptySet () | |
| Check whether forceEmptySet() has been called. | |
| joinForConds (string $table) | |
| Join on the specified table and declare that it will be used to provide fields for the WHERE clause. | |
| joinForFields (string $table) | |
| Join on the specified table and declare that it will be used to provide fields for the SELECT clause. | |
| joinOrderHint (string $order) | |
| Set the join order hint. | |
| rcUserFields () | |
| Add the rc_user and rc_user_text fields to the query, conventional aliases for actor_user and actor_name. | |
| where (IExpression $expr) | |
| Add a condition to the query. | |
Public Attributes | |
| const | DENSITY_CHANGE_TAG_THRESHOLD = 'change-tag-threshold' |
| The minimum density to active change tag heuristics. | |
| const | DENSITY_LINKS = 'links' |
| The naive density of a RecentChangesLinked query. | |
| const | DENSITY_USER = 'user' |
| The naive density of a user/actor condition. | |
| const | DENSITY_WATCHLIST = 'watchlist' |
| The naive density of a watchlist query. | |
| const | JOIN_ORDER_OTHER = 'other' |
| Another table will likely be first in the join. | |
| const | JOIN_ORDER_RECENTCHANGES = 'recentchanges' |
| The recentchanges table will likely be first in the join. | |
The narrow interface passed to filter modules.
Filter condition modules call these methods during query preparation to register their fields, conditions and joins.
Definition at line 14 of file QueryBackend.php.
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::adjustDensity | ( | $density | ) |
Adjust the density heuristic by multiplying it by the given factor.
This sets the proportion of recentchanges rows likely to be matched by the conditions.
| float | int | string | $density | Either a number or one of the self::DENSITY_* constants. |
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareConds(), and MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::distinct | ( | ) |
Flag that the joins will inadvertently duplicate recentchanges rows and that the query will have to deal with that somehow, maybe by adding a DISTINCT option.
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\ChangeTagsCondition\prepareConds(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareConds().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::fields | ( | $fields | ) |
Add fields to the query.
| string | string[] | $fields |
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\BooleanFieldCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\BooleanJoinFieldCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\ChangeTagsCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\EnumFieldCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\FieldEqualityCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\RevisionTypeCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\SeenCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\SubpageOfCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\TitleCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareCapture(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareCapture().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::forceEmptySet | ( | ) |
Set a flag forcing the query to return no rows when it is executed.
Like adding a 0=1 condition.
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\BooleanJoinFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\ChangeTagsCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\EnumFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\FieldEqualityCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\NamedCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\RevisionTypeCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\SeenCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\SubpageOfCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\TitleCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareConds().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::isEmptySet | ( | ) |
Check whether forceEmptySet() has been called.
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::joinForConds | ( | string | $table | ) |
Join on the specified table and declare that it will be used to provide fields for the WHERE clause.
The table name must be registered in the ChangesListQuery. The join type can be set by calling a method on the returned object.
| string | $table |
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\BooleanJoinFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\ChangeTagsCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\ExperienceCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\NamedCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\RevisionTypeCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\SeenCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareConds().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::joinForFields | ( | string | $table | ) |
Join on the specified table and declare that it will be used to provide fields for the SELECT clause.
The table name must be registered in the ChangesListQuery. The join type can be set by calling a method on the returned object.
| string | $table |
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\BooleanJoinFieldCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\NamedCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\RevisionTypeCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\SeenCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareCapture(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareCapture().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::joinOrderHint | ( | string | $order | ) |
Set the join order hint.
Whether recentchanges or some other table will likely be first in the join. If this is JOIN_ORDER_OTHER, partitioning the query by timestamp will be considered.
| string | $order |
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::rcUserFields | ( | ) |
Add the rc_user and rc_user_text fields to the query, conventional aliases for actor_user and actor_name.
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\ExperienceCondition\prepareCapture(), MediaWiki\RecentChanges\ChangesListQuery\NamedCondition\prepareCapture(), and MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareCapture().
| MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::where | ( | IExpression | $expr | ) |
Add a condition to the query.
| IExpression | $expr |
Implemented in MediaWiki\RecentChanges\ChangesListQuery\ChangesListQuery.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\BooleanFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\BooleanJoinFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\ChangeTagsCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\EnumFieldCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\ExperienceCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\FieldEqualityCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\NamedCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\RevisionTypeCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\SeenCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\SubpageOfCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\TitleCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareConds(), MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds(), and MediaWiki\RecentChanges\ChangesListQuery\WatchlistLabelCondition\prepareConds().
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::DENSITY_CHANGE_TAG_THRESHOLD = 'change-tag-threshold' |
The minimum density to active change tag heuristics.
Definition at line 22 of file QueryBackend.php.
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::DENSITY_LINKS = 'links' |
The naive density of a RecentChangesLinked query.
Definition at line 16 of file QueryBackend.php.
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::DENSITY_USER = 'user' |
The naive density of a user/actor condition.
Definition at line 20 of file QueryBackend.php.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\UserCondition\prepareConds().
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::DENSITY_WATCHLIST = 'watchlist' |
The naive density of a watchlist query.
Definition at line 18 of file QueryBackend.php.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds().
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::JOIN_ORDER_OTHER = 'other' |
Another table will likely be first in the join.
Definition at line 27 of file QueryBackend.php.
Referenced by MediaWiki\RecentChanges\ChangesListQuery\WatchedCondition\prepareConds().
| const MediaWiki\RecentChanges\ChangesListQuery\QueryBackend::JOIN_ORDER_RECENTCHANGES = 'recentchanges' |
The recentchanges table will likely be first in the join.
Definition at line 25 of file QueryBackend.php.