MediaWiki
master
ChangesListCondition.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\RecentChanges\ChangesListQuery
;
4
5
use stdClass;
6
use
Wikimedia\Rdbms\IReadableDatabase
;
7
16
interface
ChangesListCondition
{
30
public
function
require( $value ): void;
31
45
public
function
exclude
( $value ): void;
46
53
public
function
validateValue
( $value );
54
68
public
function
evaluate
( stdClass $row, $value ): bool;
69
74
public
function
capture
(): void;
75
80
public
function
isCaptured
(): bool;
81
90
public
function
prepareQuery
(
IReadableDatabase
$dbr,
QueryBackend
$query ): void;
91
}
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition
Interface for modules implementing a boolean condition which may match a row in a ChangesListResult.
Definition
ChangesListCondition.php:16
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\validateValue
validateValue( $value)
Validate a value and return its normalized form.
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\capture
capture()
Set a flag indicating that evaluate() will be called with rows from the query result.
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\evaluate
evaluate(stdClass $row, $value)
Evaluate the filter condition against a row, determining whether it is true or false.
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\isCaptured
isCaptured()
Check whether capture() has been called.
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\exclude
exclude( $value)
Add a value to the set of excluded values.
MediaWiki\RecentChanges\ChangesListQuery\ChangesListCondition\prepareQuery
prepareQuery(IReadableDatabase $dbr, QueryBackend $query)
Add conditions and joins to the query in order to implement require() and exclude().
MediaWiki\RecentChanges\ChangesListQuery\QueryBackend
The narrow interface passed to filter modules.
Definition
QueryBackend.php:16
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:20
MediaWiki\RecentChanges\ChangesListQuery
Definition
BasicJoin.php:3
includes
RecentChanges
ChangesListQuery
ChangesListCondition.php
Generated on Fri Oct 16 2026 08:23:35 for MediaWiki by
1.10.0