MediaWiki
master
QueryBackend.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\RecentChanges\ChangesListQuery
;
4
5
use
Wikimedia\Rdbms\IExpression
;
6
14
interface
QueryBackend
{
16
public
const
DENSITY_LINKS
=
'links'
;
18
public
const
DENSITY_WATCHLIST
=
'watchlist'
;
20
public
const
DENSITY_USER
=
'user'
;
22
public
const
DENSITY_CHANGE_TAG_THRESHOLD
=
'change-tag-threshold'
;
23
25
public
const
JOIN_ORDER_RECENTCHANGES
=
'recentchanges'
;
27
public
const
JOIN_ORDER_OTHER
=
'other'
;
28
38
public
function
joinForFields
(
string
$table ):
ChangesListJoinBuilder
;
39
49
public
function
joinForConds
(
string
$table ):
ChangesListJoinBuilder
;
50
58
public
function
distinct
(): self;
59
69
public
function
adjustDensity
( $density ): self;
70
78
public
function
joinOrderHint
(
string
$order ): self;
79
86
public
function
where
(
IExpression
$expr ): self;
87
94
public
function
fields
( $fields ): self;
95
102
public
function
rcUserFields
(): self;
103
110
public
function
forceEmptySet
(): self;
111
117
public
function
isEmptySet
(): bool;
118
}
MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinBuilder
An object encapsulating a single instance of a join on a table.
Definition
ChangesListJoinBuilder.php:15
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend
The narrow interface passed to filter modules.
Definition
QueryBackend.php:14
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\forceEmptySet
forceEmptySet()
Set a flag forcing the query to return no rows when it is executed.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_CHANGE_TAG_THRESHOLD
const DENSITY_CHANGE_TAG_THRESHOLD
The minimum density to active change tag heuristics.
Definition
QueryBackend.php:22
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\fields
fields( $fields)
Add fields to the query.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\rcUserFields
rcUserFields()
Add the rc_user and rc_user_text fields to the query, conventional aliases for actor_user and actor_n...
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_WATCHLIST
const DENSITY_WATCHLIST
The naive density of a watchlist query.
Definition
QueryBackend.php:18
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_LINKS
const DENSITY_LINKS
The naive density of a RecentChangesLinked query.
Definition
QueryBackend.php:16
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_USER
const DENSITY_USER
The naive density of a user/actor condition.
Definition
QueryBackend.php:20
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\where
where(IExpression $expr)
Add a condition to the query.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\JOIN_ORDER_OTHER
const JOIN_ORDER_OTHER
Another table will likely be first in the join.
Definition
QueryBackend.php:27
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\joinForFields
joinForFields(string $table)
Join on the specified table and declare that it will be used to provide fields for the SELECT clause.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\joinForConds
joinForConds(string $table)
Join on the specified table and declare that it will be used to provide fields for the WHERE clause.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\distinct
distinct()
Flag that the joins will inadvertently duplicate recentchanges rows and that the query will have to d...
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\JOIN_ORDER_RECENTCHANGES
const JOIN_ORDER_RECENTCHANGES
The recentchanges table will likely be first in the join.
Definition
QueryBackend.php:25
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\adjustDensity
adjustDensity( $density)
Adjust the density heuristic by multiplying it by the given factor.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\joinOrderHint
joinOrderHint(string $order)
Set the join order hint.
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\isEmptySet
isEmptySet()
Check whether forceEmptySet() has been called.
Wikimedia\Rdbms\IExpression
Definition
IExpression.php:10
MediaWiki\RecentChanges\ChangesListQuery
Definition
BasicJoin.php:3
includes
RecentChanges
ChangesListQuery
QueryBackend.php
Generated on Sat Mar 7 2026 21:24:31 for MediaWiki by
1.10.0