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
16
interface
QueryBackend
{
18
public
const
DENSITY_LINKS
=
'links'
;
20
public
const
DENSITY_WATCHLIST
=
'watchlist'
;
22
public
const
DENSITY_USER
=
'user'
;
24
public
const
DENSITY_CHANGE_TAG_THRESHOLD
=
'change-tag-threshold'
;
25
27
public
const
JOIN_ORDER_RECENTCHANGES
=
'recentchanges'
;
29
public
const
JOIN_ORDER_OTHER
=
'other'
;
30
40
public
function
joinForFields
(
string
$table ):
ChangesListJoinBuilder
;
41
51
public
function
joinForConds
(
string
$table ):
ChangesListJoinBuilder
;
52
60
public
function
distinct
(): self;
61
71
public
function
adjustDensity
( $density ): self;
72
80
public
function
joinOrderHint
(
string
$order ): self;
81
88
public
function
where
(
IExpression
$expr ): self;
89
96
public
function
fields
( $fields ): self;
97
104
public
function
rcUserFields
(): self;
105
112
public
function
forceEmptySet
(): self;
113
119
public
function
isEmptySet
(): bool;
120
}
MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinBuilder
An object encapsulating a single instance of a join on a table.
Definition
ChangesListJoinBuilder.php:17
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend
The narrow interface passed to filter modules.
Definition
QueryBackend.php:16
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:24
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:20
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_LINKS
const DENSITY_LINKS
The naive density of a RecentChangesLinked query.
Definition
QueryBackend.php:18
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend\DENSITY_USER
const DENSITY_USER
The naive density of a user/actor condition.
Definition
QueryBackend.php:22
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:29
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:27
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 Aug 8 2026 03:27:07 for MediaWiki by
1.10.0