X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryWatchlistRaw.php;h=6b2223ac877c0df31990a1143b4cb72266ae4a3a;hb=07428db8d931f2b4ea6e3c043df924a3f4edfec1;hp=07efb52c2f1d5aa94ca9d143f2111bb4a30c5e15;hpb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 07efb52c2f..6b2223ac87 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -32,7 +32,7 @@ */ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { parent::__construct( $query, $moduleName, 'wr' ); } @@ -189,38 +189,10 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'ns' => 'namespace', - 'title' => 'string' - ), - 'changed' => array( - 'changed' => array( - ApiBase::PROP_TYPE => 'timestamp', - ApiBase::PROP_NULLABLE => true - ) - ) - ); - } - public function getDescription() { return "Get all pages on the logged in user's watchlist."; } - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist' ), - array( 'show' ), - array( 'code' => 'bad_wlowner', 'info' => 'Specified user does not exist' ), - array( - 'code' => 'bad_wltoken', - 'info' => 'Incorrect watchlist token provided -- ' . - 'please set a correct token in Special:Preferences' - ), - ) ); - } - public function getExamples() { return array( 'api.php?action=query&list=watchlistraw',