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