MediaWiki
REL1_21
|
This is a simple class to handle action=help. More...
Public Member Functions | |
execute () | |
Module for displaying help. | |
getAllowedParams () | |
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (array with PARAM_* constants as keys) Don't call this function directly: use getFinalParams() to allow hooks to modify parameters as needed. | |
getDescription () | |
Returns the description string for this module. | |
getExamples () | |
Returns usage examples for this module. | |
getHelpUrls () | |
getParamDescription () | |
Returns an array of parameter descriptions. | |
isReadMode () | |
Indicates whether this module requires read rights. | |
shouldCheckMaxlag () | |
Indicates if this module needs maxlag to be checked. | |
Private Member Functions | |
buildModuleHelp ($module, $type) |
This is a simple class to handle action=help.
Definition at line 32 of file ApiHelp.php.
ApiHelp::buildModuleHelp | ( | $ | module, |
$ | type | ||
) | [private] |
$module | ApiBase |
$type | String What type of request is this? e.g. action, query, list, prop, meta, format |
Definition at line 111 of file ApiHelp.php.
References ApiMain\makeHelpMsgHeader().
Referenced by execute().
ApiHelp::execute | ( | ) |
Module for displaying help.
Reimplemented from ApiBase.
Definition at line 37 of file ApiHelp.php.
References $name, $params, $result, array(), as, buildModuleHelp(), ApiBase\dieUsage(), ApiBase\extractRequestParams(), ApiBase\getMain(), ApiBase\getModuleName(), and ApiBase\getResult().
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (array with PARAM_* constants as keys) Don't call this function directly: use getFinalParams() to allow hooks to modify parameters as needed.
Some derived classes may choose to handle an integer $flags parameter in the overriding methods. Callers of this method can pass zero or more OR-ed flags like GET_VALUES_FOR_HELP.
Reimplemented from ApiBase.
Definition at line 130 of file ApiHelp.php.
References array(), ApiBase\PARAM_DEPRECATED, and ApiBase\PARAM_ISMULTI.
Returns the description string for this module.
Reimplemented from ApiBase.
Definition at line 149 of file ApiHelp.php.
Returns usage examples for this module.
Return false if no examples are available.
Reimplemented from ApiBase.
Definition at line 153 of file ApiHelp.php.
References array().
Reimplemented from ApiBase.
Definition at line 162 of file ApiHelp.php.
References array().
Returns an array of parameter descriptions.
Don't call this function directly: use getFinalParamDescription() to allow hooks to modify descriptions as needed.
Reimplemented from ApiBase.
Definition at line 142 of file ApiHelp.php.
References array().
Indicates whether this module requires read rights.
Reimplemented from ApiBase.
Definition at line 126 of file ApiHelp.php.
Indicates if this module needs maxlag to be checked.
Reimplemented from ApiBase.
Definition at line 122 of file ApiHelp.php.