MediaWiki  1.30.0
WatchedItemQueryServiceExtension Interface Reference

Public Member Functions

 modifyWatchedItemsWithRCInfo (User $user, array $options, IDatabase $db, array &$items, $res, &$startFrom)
 Modify the results from WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo() before they're returned. More...
 
 modifyWatchedItemsWithRCInfoQuery (User $user, array $options, IDatabase $db, array &$tables, array &$fields, array &$conds, array &$dbOptions, array &$joinConds)
 Modify the WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo() query before it's made. More...
 

Detailed Description

Definition at line 16 of file WatchedItemQueryServiceExtension.php.

Member Function Documentation

◆ modifyWatchedItemsWithRCInfo()

WatchedItemQueryServiceExtension::modifyWatchedItemsWithRCInfo ( User  $user,
array  $options,
IDatabase  $db,
array $items,
  $res,
$startFrom 
)

Modify the results from WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo() before they're returned.

Parameters
User$user
array$optionsOptions from WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
IDatabase$dbDatabase connection being used for the query
array&$itemsarray of pairs ( WatchedItem $watchedItem, string[] $recentChangeInfo ). May be truncated if necessary, in which case $startFrom must be updated.
ResultWrapper | bool$resDatabase query result
array | null&$startFromContinuation value. If you truncate $items, set this to [ $recentChangeInfo['rc_timestamp'], $recentChangeInfo['rc_id'] ] from the first item removed.

◆ modifyWatchedItemsWithRCInfoQuery()

WatchedItemQueryServiceExtension::modifyWatchedItemsWithRCInfoQuery ( User  $user,
array  $options,
IDatabase  $db,
array $tables,
array $fields,
array $conds,
array $dbOptions,
array $joinConds 
)

Modify the WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo() query before it's made.

Warning
Any joins added must join on a unique key of the target table unless you really know what you're doing.
Parameters
User$user
array$optionsOptions from WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
IDatabase$dbDatabase connection being used for the query
array&$tablesTables for Database::select()
array&$fieldsFields for Database::select()
array&$condsConditions for Database::select()
array&$dbOptionsOptions for Database::select()
array&$joinCondsJoin conditions for Database::select()

The documentation for this interface was generated from the following file: