2008-10-04 13:33:44 +00:00
|
|
|
<?php
|
2010-02-26 13:18:56 +00:00
|
|
|
/**
|
2023-03-16 17:27:37 +00:00
|
|
|
* Copyright © 2008 Roan Kattouw <roan.kattouw@gmail.com>
|
2008-10-04 13:33:44 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
2010-06-21 13:13:32 +00:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2008-10-04 13:33:44 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
2010-08-07 19:59:42 +00:00
|
|
|
*
|
|
|
|
|
* @file
|
2008-10-04 13:33:44 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-09-25 16:17:29 +00:00
|
|
|
namespace MediaWiki\Api;
|
|
|
|
|
|
2024-02-08 19:09:50 +00:00
|
|
|
use MediaWiki\Cache\GenderCache;
|
2024-09-25 16:17:29 +00:00
|
|
|
use MediaWiki\Language\Language;
|
2019-08-21 19:53:53 +00:00
|
|
|
use MediaWiki\ParamValidator\TypeDef\UserDef;
|
2023-09-18 14:17:28 +00:00
|
|
|
use MediaWiki\Title\NamespaceInfo;
|
2023-03-01 20:33:26 +00:00
|
|
|
use MediaWiki\Title\Title;
|
2023-09-18 13:56:39 +00:00
|
|
|
use MediaWiki\Title\TitleValue;
|
2024-05-17 22:11:47 +00:00
|
|
|
use MediaWiki\Watchlist\WatchedItemQueryService;
|
2024-05-20 14:49:03 +00:00
|
|
|
use MediaWiki\Watchlist\WatchedItemStore;
|
2022-06-05 23:18:50 +00:00
|
|
|
use Wikimedia\ParamValidator\ParamValidator;
|
|
|
|
|
use Wikimedia\ParamValidator\TypeDef\IntegerDef;
|
2016-06-17 11:11:05 +00:00
|
|
|
|
2008-10-04 13:33:44 +00:00
|
|
|
/**
|
|
|
|
|
* This query action allows clients to retrieve a list of pages
|
|
|
|
|
* on the logged-in user's watchlist.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup API
|
|
|
|
|
*/
|
|
|
|
|
class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase {
|
|
|
|
|
|
2023-08-28 15:32:58 +00:00
|
|
|
private WatchedItemQueryService $watchedItemQueryService;
|
|
|
|
|
private Language $contentLanguage;
|
|
|
|
|
private NamespaceInfo $namespaceInfo;
|
|
|
|
|
private GenderCache $genderCache;
|
2021-07-03 19:59:08 +00:00
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
|
ApiQuery $query,
|
2024-10-14 20:12:27 +00:00
|
|
|
string $moduleName,
|
2021-07-03 19:59:08 +00:00
|
|
|
WatchedItemQueryService $watchedItemQueryService,
|
|
|
|
|
Language $contentLanguage,
|
|
|
|
|
NamespaceInfo $namespaceInfo,
|
|
|
|
|
GenderCache $genderCache
|
|
|
|
|
) {
|
2010-02-26 13:18:56 +00:00
|
|
|
parent::__construct( $query, $moduleName, 'wr' );
|
2021-07-03 19:59:08 +00:00
|
|
|
$this->watchedItemQueryService = $watchedItemQueryService;
|
|
|
|
|
$this->contentLanguage = $contentLanguage;
|
|
|
|
|
$this->namespaceInfo = $namespaceInfo;
|
|
|
|
|
$this->genderCache = $genderCache;
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function execute() {
|
|
|
|
|
$this->run();
|
|
|
|
|
}
|
|
|
|
|
|
2010-01-11 15:55:52 +00:00
|
|
|
public function executeGenerator( $resultPageSet ) {
|
|
|
|
|
$this->run( $resultPageSet );
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
2011-02-19 00:30:18 +00:00
|
|
|
/**
|
2019-11-23 22:28:57 +00:00
|
|
|
* @param ApiPageSet|null $resultPageSet
|
2012-01-12 19:41:18 +00:00
|
|
|
* @return void
|
2011-02-19 00:30:18 +00:00
|
|
|
*/
|
2010-01-11 15:55:52 +00:00
|
|
|
private function run( $resultPageSet = null ) {
|
2008-10-04 13:33:44 +00:00
|
|
|
$params = $this->extractRequestParams();
|
2010-05-16 16:37:34 +00:00
|
|
|
|
2010-06-22 12:10:26 +00:00
|
|
|
$user = $this->getWatchlistUser( $params );
|
2010-05-16 16:37:34 +00:00
|
|
|
|
2021-06-11 02:52:06 +00:00
|
|
|
$prop = array_fill_keys( (array)$params['prop'], true );
|
|
|
|
|
$show = array_fill_keys( (array)$params['show'], true );
|
2016-06-17 11:11:05 +00:00
|
|
|
if ( isset( $show[WatchedItemQueryService::FILTER_CHANGED] )
|
|
|
|
|
&& isset( $show[WatchedItemQueryService::FILTER_NOT_CHANGED] )
|
|
|
|
|
) {
|
2016-10-19 16:54:25 +00:00
|
|
|
$this->dieWithError( 'apierror-show' );
|
2010-02-26 13:18:56 +00:00
|
|
|
}
|
2008-10-04 13:33:44 +00:00
|
|
|
|
2016-06-17 11:11:05 +00:00
|
|
|
$options = [];
|
|
|
|
|
if ( $params['namespace'] ) {
|
|
|
|
|
$options['namespaceIds'] = $params['namespace'];
|
|
|
|
|
}
|
|
|
|
|
if ( isset( $show[WatchedItemQueryService::FILTER_CHANGED] ) ) {
|
|
|
|
|
$options['filter'] = WatchedItemQueryService::FILTER_CHANGED;
|
|
|
|
|
}
|
|
|
|
|
if ( isset( $show[WatchedItemQueryService::FILTER_NOT_CHANGED] ) ) {
|
|
|
|
|
$options['filter'] = WatchedItemQueryService::FILTER_NOT_CHANGED;
|
|
|
|
|
}
|
2010-01-23 22:26:40 +00:00
|
|
|
|
2010-02-26 13:18:56 +00:00
|
|
|
if ( isset( $params['continue'] ) ) {
|
2022-09-16 14:38:10 +00:00
|
|
|
$cont = $this->parseContinueParamOrDie( $params['continue'], [ 'int', 'string' ] );
|
|
|
|
|
$options['startFrom'] = TitleValue::tryNew( $cont[0], $cont[1] );
|
2019-10-02 12:33:48 +00:00
|
|
|
$this->dieContinueUsageIf( !$options['startFrom'] );
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
2010-01-23 22:26:40 +00:00
|
|
|
|
2015-05-13 18:42:39 +00:00
|
|
|
if ( isset( $params['fromtitle'] ) ) {
|
2019-10-02 12:33:48 +00:00
|
|
|
$options['from'] = $this->parsePrefixedTitlePart( $params['fromtitle'] );
|
2015-05-13 18:42:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( isset( $params['totitle'] ) ) {
|
2019-10-02 12:33:48 +00:00
|
|
|
$options['until'] = $this->parsePrefixedTitlePart( $params['totitle'] );
|
2015-05-13 18:42:39 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-17 11:11:05 +00:00
|
|
|
$options['sort'] = WatchedItemStore::SORT_ASC;
|
|
|
|
|
if ( $params['dir'] === 'descending' ) {
|
|
|
|
|
$options['sort'] = WatchedItemStore::SORT_DESC;
|
2010-02-26 13:18:56 +00:00
|
|
|
}
|
2016-06-17 11:11:05 +00:00
|
|
|
$options['limit'] = $params['limit'] + 1;
|
2010-02-26 13:18:56 +00:00
|
|
|
|
2016-02-17 09:09:32 +00:00
|
|
|
$titles = [];
|
2008-10-04 13:33:44 +00:00
|
|
|
$count = 0;
|
2021-07-03 19:59:08 +00:00
|
|
|
$items = $this->watchedItemQueryService->getWatchedItemsForUser( $user, $options );
|
2019-10-10 17:44:04 +00:00
|
|
|
|
|
|
|
|
// Get gender information
|
|
|
|
|
if ( $items !== [] && $resultPageSet === null &&
|
2021-07-03 19:59:08 +00:00
|
|
|
$this->contentLanguage->needsGenderDistinction()
|
2019-10-10 17:44:04 +00:00
|
|
|
) {
|
|
|
|
|
$usernames = [];
|
|
|
|
|
foreach ( $items as $item ) {
|
2021-03-25 03:08:22 +00:00
|
|
|
$linkTarget = $item->getTarget();
|
2021-07-03 19:59:08 +00:00
|
|
|
if ( $this->namespaceInfo->hasGenderDistinction( $linkTarget->getNamespace() ) ) {
|
2019-10-10 17:44:04 +00:00
|
|
|
$usernames[] = $linkTarget->getText();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( $usernames !== [] ) {
|
2021-07-03 19:59:08 +00:00
|
|
|
$this->genderCache->doQuery( $usernames, __METHOD__ );
|
2019-10-10 17:44:04 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-17 11:11:05 +00:00
|
|
|
foreach ( $items as $item ) {
|
2021-03-25 03:08:22 +00:00
|
|
|
$ns = $item->getTarget()->getNamespace();
|
|
|
|
|
$dbKey = $item->getTarget()->getDBkey();
|
2010-02-26 13:18:56 +00:00
|
|
|
if ( ++$count > $params['limit'] ) {
|
2013-11-14 13:31:56 +00:00
|
|
|
// We've reached the one extra which shows that there are
|
|
|
|
|
// additional pages to be had. Stop here...
|
2016-06-17 11:11:05 +00:00
|
|
|
$this->setContinueEnumParameter( 'continue', $ns . '|' . $dbKey );
|
2008-10-04 13:33:44 +00:00
|
|
|
break;
|
|
|
|
|
}
|
2016-06-17 11:11:05 +00:00
|
|
|
$t = Title::makeTitle( $ns, $dbKey );
|
2010-01-23 22:26:40 +00:00
|
|
|
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( $resultPageSet === null ) {
|
2016-02-17 09:09:32 +00:00
|
|
|
$vals = [];
|
2010-01-11 15:55:52 +00:00
|
|
|
ApiQueryBase::addTitleInfo( $vals, $t );
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( isset( $prop['changed'] ) && $item->getNotificationTimestamp() !== null ) {
|
2016-06-17 11:11:05 +00:00
|
|
|
$vals['changed'] = wfTimestamp( TS_ISO_8601, $item->getNotificationTimestamp() );
|
2010-02-26 13:18:56 +00:00
|
|
|
}
|
2010-01-11 15:55:52 +00:00
|
|
|
$fit = $this->getResult()->addValue( $this->getModuleName(), null, $vals );
|
2010-02-26 13:18:56 +00:00
|
|
|
if ( !$fit ) {
|
2016-06-17 11:11:05 +00:00
|
|
|
$this->setContinueEnumParameter( 'continue', $ns . '|' . $dbKey );
|
* API: BREAKING CHANGE: (bug 11430) Return fewer results than the limit in some cases to prevent running out of memory
* This means queries could possibly return fewer results than the limit and still set a query-continue
* Add iicontinue, rvcontinue, cicontinue, incontinue, amfrom to faciliate query-continue for these modules
* Implemented by blocking additions to the ApiResult object if they would make it too large
** Important things like query-continue values and warnings are exempt from this check
** RSS feeds and exported XML are also exempted (size-checking them would be too messy)
** Result size is checked against $wgAPIMaxResultSize, which defaults to 8 MB
For those who really care, per-file details follow:
ApiResult.php:
* Introduced ApiResult::$mSize which keeps track of the result size.
* Introduced ApiResult::size() which calculates an array's size
(which is the sum of the strlen()s of its elements).
* ApiResult::addValue() now checks that the result size stays below
$wgAPIMaxResultSize. If the item won't fit, it won't be added and addValue()
will return false. Callers should check the return value and set a
query-continue if it's false.
* Closed the back door that is ApiResult::getData(): callers can't manipulate
the data array directly anymore so they can't bypass the result size limit.
* Added ApiResult::setIndexedTagName_internal() which will call
setIndexedTagName() on an array already in the result. This is needed for the
'new' order of adding results, which means addValue()ing one result at a time
until you hit the limit or run out, then calling this function to set the tag
name.
* Added ApiResult::disableSizeCheck() and enableSizeCheck() which disable and
enable size checking in addValue(). This is used for stuff like query-continue
elements and warnings which shouldn't count towards the result size.
* Added ApiResult::unsetValue() which removes an element from the result and
decreases $mSize.
ApiBase.php:
* Like ApiResult::getData(), ApiBase::getResultData() no longer returns a
reference.
* Use ApiResult::disableSizeCheck() in ApiBase::setWarning()
ApiQueryBase.php:
* Added ApiQueryBase::addPageSubItem(), which adds page subitems one item
at a time.
* addPageSubItem() and addPageSubItems() now return whether the subitem
fit in the result.
* Use ApiResult::disableSizeCheck() in setContinueEnumParameter()
ApiMain.php:
* Use ApiResult::disableSizeCheck() in ApiMain::substituteResultWithError()
* Use getParameter() rather than $mRequest to obtain requestid
DefaultSettings.php:
* Added $wgAPIMaxResultSize, with a default value of 8 MB
ApiQuery*.php:
* Added results one at a time, and set a query-continue if the result is full.
ApiQueryLangLinks.php and friends:
* Migrated from addPageSubItems() to addPageSubItem(). This eliminates the
need for $lastId.
ApiQueryAllLinks.php, ApiQueryWatchlist.php, ApiQueryAllimages.php, ApiQuerySearch.php:
* Renamed $data to something more appropriate ($pageids, $ids or $titles)
ApiQuerySiteinfo.php:
* Abuse siprop as a query-continue parameter and set it to all props that
couldn't be processed.
ApiQueryRandom.php:
* Doesn't do continuations, because the result is supposed to be random.
* Be smart enough to not run the second query if the results of the first
didn't fit.
ApiQueryImageInfo.php, ApiQueryRevisions.php, ApiQueryCategoryInfo.php, ApiQueryInfo.php:
* Added continue parameter which basically skips the first so many items
ApiQueryBacklinks.php:
* Throw the result in a big array first and addValue() that one element at a time if necessary
** This is necessary because the results aren't retrieved in order
* Introduced $this->pageMap to map namespace and title to page ID
* Rewritten extractRowInfo() and extractRedirRowInfo() a little
* Declared all private member variables explicitly
ApiQueryDeletedrevs.php:
* Use a pagemap just like in Backlinks
* Introduce fake page IDs and keep track of them so we know where to add what
** This doesn't change the output format, because the fake page IDs start at 0 and are consecutive
ApiQueryAllmessages.php:
* Add amfrom to facilitate query-continue
ApiQueryUsers.php:
* Rewrite: put the getOtherUsersInfo() code in execute()
2009-02-05 14:30:59 +00:00
|
|
|
break;
|
|
|
|
|
}
|
2010-02-26 13:18:56 +00:00
|
|
|
} else {
|
2008-10-04 13:33:44 +00:00
|
|
|
$titles[] = $t;
|
2010-02-26 13:18:56 +00:00
|
|
|
}
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( $resultPageSet === null ) {
|
API: Overhaul ApiResult, make format=xml not throw, and add json formatversion
ApiResult was a mess: some methods could only be used with an array
reference instead of manipulating the stored data, methods that had both
array-ref and internal-data versions had names that didn't at all
correspond, some methods that worked on an array reference were
annoyingly non-static, and then the whole mess with setIndexedTagName.
ApiFormatXml is also entirely annoying to deal with, as it liked to
throw exceptions if certain metadata wasn't provided that no other
formatter required. Its legacy also means we have this silly convention
of using empty-string rather than boolean true, annoying restrictions on
keys (leading to things that should be hashes being arrays of key-value
object instead), '*' used as a key all over the place, and so on.
So, changes here:
* ApiResult is no longer an ApiBase or a ContextSource.
* Wherever sensible, ApiResult provides a static method working on an
arrayref and a non-static method working on internal data.
* Metadata is now always added to ApiResult's internal data structure.
Formatters are responsible for stripping it if necessary. "raw mode"
is deprecated.
* New metadata to replace the '*' key, solve the array() => '[]' vs '{}'
question, and so on.
* New class for formatting warnings and errors using i18n messages, and
support for multiple errors and a more machine-readable format for
warnings. For the moment, though, the actual output will not be changing
yet (see T47843 for future plans).
* New formatversion parameter for format=json and format=php, to select
between BC mode and the modern output.
* In BC mode, booleans will be converted to empty-string presence style;
modules currently returning booleans will need to use
ApiResult::META_BC_BOOLS to preserve their current output.
Actual changes to the API modules' output (e.g. actually returning
booleans for the new formatversion) beyond the use of
ApiResult::setContentValue() are left for a future change.
Bug: T76728
Bug: T57371
Bug: T33629
Change-Id: I7b37295e8862b188d1f3b0cd07f66ac34629678f
2014-12-03 22:14:22 +00:00
|
|
|
$this->getResult()->addIndexedTagName( $this->getModuleName(), 'wr' );
|
2010-02-26 13:18:56 +00:00
|
|
|
} else {
|
2010-01-11 15:55:52 +00:00
|
|
|
$resultPageSet->populateFromTitles( $titles );
|
2010-02-26 13:18:56 +00:00
|
|
|
}
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getAllowedParams() {
|
2016-02-17 09:09:32 +00:00
|
|
|
return [
|
|
|
|
|
'continue' => [
|
2014-09-18 17:38:23 +00:00
|
|
|
ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'namespace' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_ISMULTI => true,
|
|
|
|
|
ParamValidator::PARAM_TYPE => 'namespace'
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'limit' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_DEFAULT => 10,
|
|
|
|
|
ParamValidator::PARAM_TYPE => 'limit',
|
|
|
|
|
IntegerDef::PARAM_MIN => 1,
|
|
|
|
|
IntegerDef::PARAM_MAX => ApiBase::LIMIT_BIG1,
|
|
|
|
|
IntegerDef::PARAM_MAX2 => ApiBase::LIMIT_BIG2
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'prop' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_ISMULTI => true,
|
|
|
|
|
ParamValidator::PARAM_TYPE => [
|
2008-10-04 13:33:44 +00:00
|
|
|
'changed',
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
ApiBase::PARAM_HELP_MSG_PER_VALUE => [],
|
|
|
|
|
],
|
|
|
|
|
'show' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_ISMULTI => true,
|
|
|
|
|
ParamValidator::PARAM_TYPE => [
|
2016-06-17 11:11:05 +00:00
|
|
|
WatchedItemQueryService::FILTER_CHANGED,
|
|
|
|
|
WatchedItemQueryService::FILTER_NOT_CHANGED
|
2016-02-17 09:09:32 +00:00
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
'owner' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_TYPE => 'user',
|
2019-08-21 19:53:53 +00:00
|
|
|
UserDef::PARAM_ALLOWED_USER_TYPES => [ 'name' ],
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'token' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_TYPE => 'string',
|
2022-06-06 01:24:41 +00:00
|
|
|
ParamValidator::PARAM_SENSITIVE => true,
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'dir' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_DEFAULT => 'ascending',
|
|
|
|
|
ParamValidator::PARAM_TYPE => [
|
2012-03-29 21:15:32 +00:00
|
|
|
'ascending',
|
|
|
|
|
'descending'
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
'fromtitle' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_TYPE => 'string'
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
'totitle' => [
|
2022-06-05 23:18:50 +00:00
|
|
|
ParamValidator::PARAM_TYPE => 'string'
|
2016-02-17 09:09:32 +00:00
|
|
|
],
|
|
|
|
|
];
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
2014-10-28 17:17:02 +00:00
|
|
|
protected function getExamplesMessages() {
|
2016-02-17 09:09:32 +00:00
|
|
|
return [
|
2014-09-18 17:38:23 +00:00
|
|
|
'action=query&list=watchlistraw'
|
|
|
|
|
=> 'apihelp-query+watchlistraw-example-simple',
|
|
|
|
|
'action=query&generator=watchlistraw&gwrshow=changed&prop=info'
|
|
|
|
|
=> 'apihelp-query+watchlistraw-example-generator',
|
2016-02-17 09:09:32 +00:00
|
|
|
];
|
2008-10-04 13:33:44 +00:00
|
|
|
}
|
2013-05-16 07:08:18 +00:00
|
|
|
|
|
|
|
|
public function getHelpUrls() {
|
2017-04-04 22:52:57 +00:00
|
|
|
return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Watchlistraw';
|
2013-05-16 07:08:18 +00:00
|
|
|
}
|
2011-05-19 17:51:16 +00:00
|
|
|
}
|
2024-09-25 16:17:29 +00:00
|
|
|
|
|
|
|
|
/** @deprecated class alias since 1.43 */
|
|
|
|
|
class_alias( ApiQueryWatchlistRaw::class, 'ApiQueryWatchlistRaw' );
|