MediaWiki
REL1_19
|
This is a simple class to handle action=help. More...
Public Member Functions | |
__construct ($main, $action) | |
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. | |
getVersion () | |
Returns a string that identifies the version of the extending class. | |
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::__construct | ( | $ | main, |
$ | action | ||
) |
Definition at line 34 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 96 of file ApiHelp.php.
References ApiMain\makeHelpMsgHeader().
Referenced by execute().
ApiHelp::execute | ( | ) |
Module for displaying help.
Reimplemented from ApiBase.
Definition at line 41 of file ApiHelp.php.
References $result, 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.
Reimplemented from ApiBase.
Definition at line 115 of file ApiHelp.php.
References ApiBase\PARAM_ISMULTI.
Returns the description string for this module.
Reimplemented from ApiBase.
Definition at line 133 of file ApiHelp.php.
Returns usage examples for this module.
Return false if no examples are available.
Reimplemented from ApiBase.
Definition at line 137 of file ApiHelp.php.
Reimplemented from ApiBase.
Definition at line 147 of file ApiHelp.php.
Returns an array of parameter descriptions.
Don't call this functon directly: use getFinalParamDescription() to allow hooks to modify descriptions as needed.
Reimplemented from ApiBase.
Definition at line 126 of file ApiHelp.php.
Returns a string that identifies the version of the extending class.
Typically includes the class name, the svn revision, timestamp, and last author. Usually done with SVN's Id keyword
Reimplemented from ApiBase.
Definition at line 155 of file ApiHelp.php.
Indicates whether this module requires read rights.
Reimplemented from ApiBase.
Definition at line 111 of file ApiHelp.php.
Indicates if this module needs maxlag to be checked.
Reimplemented from ApiBase.
Definition at line 107 of file ApiHelp.php.