MediaWiki
master
RecentChangeLookup.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\RecentChanges
;
8
12
interface
RecentChangeLookup
{
19
public
function
getRecentChangeById
(
int
$rcid ): ?
RecentChange
;
20
29
public
function
getRecentChangeByConds
(
30
array $conds,
31
string
$fname = __METHOD__,
32
bool
$fromPrimary =
false
33
): ?
RecentChange
;
34
40
public
function
getPrimarySources
(): array;
41
48
public
function
isFromPrimarySource
(
RecentChange
$rc ): bool;
49
55
public
function
getAllSources
(): array;
56
65
public
function
convertTypeToSources
( $type ): array;
66
74
public
function
convertSourceToType
(
string
$source
): string;
75
}
MediaWiki\RecentChanges\RecentChange
Utility class for creating and reading rows in the recentchanges table.
Definition
RecentChange.php:91
MediaWiki\RecentChanges\RecentChangeLookup
Definition
RecentChangeLookup.php:12
MediaWiki\RecentChanges\RecentChangeLookup\convertSourceToType
convertSourceToType(string $source)
Convert an rc_source value to a legacy type string.
MediaWiki\RecentChanges\RecentChangeLookup\convertTypeToSources
convertTypeToSources( $type)
Convert a legacy type string, as used by the API, or an array of such strings, to an array of rc_sour...
MediaWiki\RecentChanges\RecentChangeLookup\getRecentChangeByConds
getRecentChangeByConds(array $conds, string $fname=__METHOD__, bool $fromPrimary=false)
Get the first recent change matching some specific conditions.
MediaWiki\RecentChanges\RecentChangeLookup\getAllSources
getAllSources()
Get all known rc_source values.
MediaWiki\RecentChanges\RecentChangeLookup\getPrimarySources
getPrimarySources()
Get the rc_source values for events that are not replicated from elsewhere.
MediaWiki\RecentChanges\RecentChangeLookup\isFromPrimarySource
isFromPrimarySource(RecentChange $rc)
Check if a recent change is from a primary source.
MediaWiki\RecentChanges\RecentChangeLookup\getRecentChangeById
getRecentChangeById(int $rcid)
Get a recent change by its ID.
$source
$source
Definition
mwdoc-filter.php:36
MediaWiki\RecentChanges
Definition
CategoryMembershipChange.php:7
includes
RecentChanges
RecentChangeLookup.php
Generated on Fri Jan 16 2026 12:26:44 for MediaWiki by
1.10.0