MediaWiki master
RecentChangeLookup.php
Go to the documentation of this file.
1<?php
8
20 public function getRecentChangeById( int $rcid ): ?RecentChange;
21
30 public function getRecentChangeByConds(
31 array $conds,
32 string $fname = __METHOD__,
33 bool $fromPrimary = false
34 ): ?RecentChange;
35
41 public function getPrimarySources(): array;
42
49 public function isFromPrimarySource( RecentChange $rc ): bool;
50
56 public function getAllSources(): array;
57
66 public function convertTypeToSources( $type ): array;
67
75 public function convertSourceToType( string $source ): string;
76}
Utility class for creating and reading rows in the recentchanges table.
convertSourceToType(string $source)
Convert an rc_source value to a legacy type string.
convertTypeToSources( $type)
Convert a legacy type string, as used by the API, or an array of such strings, to an array of rc_sour...
getRecentChangeByConds(array $conds, string $fname=__METHOD__, bool $fromPrimary=false)
Get the first recent change matching some specific conditions.
getAllSources()
Get all known rc_source values.
getPrimarySources()
Get the rc_source values for events that are not replicated from elsewhere.
isFromPrimarySource(RecentChange $rc)
Check if a recent change is from a primary source.
getRecentChangeById(int $rcid)
Get a recent change by its ID.
$source