MediaWiki
REL1_23
|
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 114 of file ApiHelp.php.
References ApiMain\makeHelpMsgHeader().
Referenced by execute().
ApiHelp::execute | ( | ) |
Module for displaying help.
Reimplemented from ApiBase.
Definition at line 36 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 133 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 154 of file ApiHelp.php.
Returns usage examples for this module.
Return false if no examples are available.
Reimplemented from ApiBase.
Definition at line 158 of file ApiHelp.php.
References array().
Reimplemented from ApiBase.
Definition at line 169 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 145 of file ApiHelp.php.
References array().
Indicates whether this module requires read rights.
Reimplemented from ApiBase.
Definition at line 129 of file ApiHelp.php.
Indicates if this module needs maxlag to be checked.
Reimplemented from ApiBase.
Definition at line 125 of file ApiHelp.php.