40 $res->addValue(
'spamblacklist',
'result',
'blacklisted' );
45 $res->addValue(
'spamblacklist',
'result',
'ok' );
64 'action=spamblacklist&url=http://www.example.com/|http://www.example.org/'
65 =>
'apihelp-spamblacklist-example-1',
70 return [
'https://www.mediawiki.org/wiki/Extension:SpamBlacklist/API' ];
This abstract class implements many basic API functions, and is the base of all API classes.
const PARAM_REQUIRED
(boolean) Is the parameter required?
getResult()
Get the result object.
extractRequestParams( $options=[])
Using getAllowedParams(), this function makes an array of the values provided by the user,...
const PARAM_ISMULTI
(boolean) Accept multiple pipe-separated values for this parameter (e.g.
SpamBlacklist extension API.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
getHelpUrls()
Return links to more detailed help pages about the module.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
static getInstance( $type)
Returns an instance of the given blacklist.