|
MediaWiki master
|
Inherited by MediaWiki\RecentChanges\RecentChangeStore.
Public Member Functions | |
| 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_source values. | |
| getAllSources () | |
| Get all known rc_source values. | |
| getPrimarySources () | |
| Get the rc_source values for events that are not replicated from elsewhere. | |
| getRecentChangeByConds (array $conds, string $fname=__METHOD__, bool $fromPrimary=false) | |
| Get the first recent change matching some specific conditions. | |
| getRecentChangeById (int $rcid) | |
| Get a recent change by its ID. | |
| isFromPrimarySource (RecentChange $rc) | |
| Check if a recent change is from a primary source. | |
Definition at line 12 of file RecentChangeLookup.php.
| MediaWiki\RecentChanges\RecentChangeLookup::convertSourceToType | ( | string | $source | ) |
Convert an rc_source value to a legacy type string.
| string | $source |
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::convertTypeToSources | ( | $type | ) |
Convert a legacy type string, as used by the API, or an array of such strings, to an array of rc_source values.
| string | string[] | $type |
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::getAllSources | ( | ) |
Get all known rc_source values.
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::getPrimarySources | ( | ) |
Get the rc_source values for events that are not replicated from elsewhere.
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::getRecentChangeByConds | ( | array | $conds, |
| string | $fname = __METHOD__, | ||
| bool | $fromPrimary = false ) |
Get the first recent change matching some specific conditions.
| array | $conds | Array of conditions |
| string | $fname | Override the method name in profiling/logs |
| bool | $fromPrimary | Whether to fetch from the primary database |
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::getRecentChangeById | ( | int | $rcid | ) |
Get a recent change by its ID.
| int | $rcid | The rc_id value to retrieve |
Implemented in MediaWiki\RecentChanges\RecentChangeStore.
| MediaWiki\RecentChanges\RecentChangeLookup::isFromPrimarySource | ( | RecentChange | $rc | ) |
Check if a recent change is from a primary source.
| RecentChange | $rc |
Implemented in MediaWiki\RecentChanges\RecentChangeStore.