Go to the documentation of this file.
38 $val = call_user_func( $types[
$type],
null,
null );
40 if ( $val ===
false ) {
41 $this->
setWarning(
"Action '$type' is not allowed for the current user" );
43 $res[$type .
'token'] = $val;
61 $types =
array(
'patrol' =>
array(
'ApiQueryRecentChanges',
'getPatrolToken' ) );
62 $names =
array(
'edit',
'delete',
'protect',
'move',
'block',
'unblock',
63 'email',
'import',
'watch',
'options' );
65 $types[
$name] =
array(
'ApiQueryInfo',
'get' . ucfirst(
$name ) .
'Token' );
96 'type' =>
'Type of token(s) to request'
101 return 'Gets tokens for data-modifying actions.';
106 'api.php?action=tokens' =>
'Retrieve an edit token (the default)',
107 'api.php?action=tokens&type=email|move' =>
'Retrieve an email token and a move token'
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getExamples()
Returns usage examples for this module.
getResult()
Get the result object.
wfProfileIn( $functionname)
Begin profiling of a function.
getParamDescription()
Returns an array of parameter descriptions.
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
getRequest()
Get the WebRequest object.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
This abstract class implements many basic API functions, and is the base of all API classes.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
wfProfileOut( $functionname='missing')
Stop profiling of a function.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
Allows to change the fields on the form that will be generated $name
static addTokenProperties(&$props, $tokenFunctions)
Add token properties to the array used by getResultProperties, based on a token functions mapping.
setWarning( $warning)
Set warning section for this module.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getModuleName()
Get the name of the module being executed by this instance.
getMain()
Get the main module.
getDescription()
Returns the description string for this module.