Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432670
WatchedItemQueryServiceExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
WatchedItemQueryServiceExtension.php
View Options
<?php
namespace
MediaWiki\Watchlist
;
use
MediaWiki\User\UserIdentity
;
use
Wikimedia\Rdbms\IReadableDatabase
;
use
Wikimedia\Rdbms\IResultWrapper
;
/**
* Extension mechanism for WatchedItemQueryService
*
* @since 1.29
*
* @file
* @ingroup Watchlist
*
* @license GPL-2.0-or-later
*/
interface
WatchedItemQueryServiceExtension
{
/**
* 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.
* @param UserIdentity $user
* @param array $options Options from
* WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
* @param IReadableDatabase $db Database connection being used for the query
* @param array &$tables Tables for Database::select()
* @param array &$fields Fields for Database::select()
* @param array &$conds Conditions for Database::select()
* @param array &$dbOptions Options for Database::select()
* @param array &$joinConds Join conditions for Database::select()
*/
public
function
modifyWatchedItemsWithRCInfoQuery
(
UserIdentity
$user
,
array
$options
,
IReadableDatabase
$db
,
array
&
$tables
,
array
&
$fields
,
array
&
$conds
,
array
&
$dbOptions
,
array
&
$joinConds
);
/**
* Modify the results from WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
* before they're returned.
*
* @param UserIdentity $user
* @param array $options Options from
* WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
* @param IReadableDatabase $db Database connection being used for the query
* @param array &$items array of pairs ( WatchedItem $watchedItem, string[] $recentChangeInfo ).
* May be truncated if necessary, in which case $startFrom must be updated.
* @param IResultWrapper|bool $res Database query result
* @param array|null &$startFrom Continuation value. If you truncate $items, set this to
* [ $recentChangeInfo['rc_timestamp'], $recentChangeInfo['rc_id'] ] from the first item
* removed.
*/
public
function
modifyWatchedItemsWithRCInfo
(
UserIdentity
$user
,
array
$options
,
IReadableDatabase
$db
,
array
&
$items
,
$res
,
&
$startFrom
);
}
/** @deprecated class alias since 1.43 */
class_alias
(
WatchedItemQueryServiceExtension
::
class
,
'WatchedItemQueryServiceExtension'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 22:09 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
78/28/794b07f2f52ef02608784cfc9611
Default Alt Text
WatchedItemQueryServiceExtension.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment