MediaWiki
REL1_19
|
This abstract class implements many basic API functions, and is the base of all API classes. More...
Public Member Functions | |
__construct ($mainModule, $moduleName, $modulePrefix= '') | |
Constructor. | |
createContext () | |
Create a new RequestContext object to use e.g. | |
dieReadOnly () | |
Helper function for readonly errors. | |
dieUsage ($description, $errorCode, $httpRespCode=0, $extradata=null) | |
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an error message. | |
dieUsageMsg ($error) | |
Output the error message related to a certain array. | |
encodeParamName ($paramName) | |
This method mangles parameter name based on the prefix supplied to the constructor. | |
execute () | |
Evaluates the parameters, performs the requested query, and sets up the result. | |
extractRequestParams ($parseLimit=true) | |
Using getAllowedParams(), this function makes an array of the values provided by the user, with key being the name of the variable, and value - validated value from user or default. | |
getCustomPrinter () | |
If the module may only be used with a certain format module, it should override this method to return an instance of that formatter. | |
getFinalDescription () | |
Get final module description, after hooks have had a chance to tweak it as needed. | |
getFinalParamDescription () | |
Get final parameter descriptions, after hooks have had a chance to tweak it as needed. | |
getFinalParams () | |
Get final list of parameters, after hooks have had a chance to tweak it as needed. | |
getHelpUrls () | |
getMain () | |
Get the main module. | |
getModuleName () | |
Get the name of the module being executed by this instance. | |
getModulePrefix () | |
Get parameter prefix (usually two letters or an empty string). | |
getModuleProfileName ($db=false) | |
Get the name of the module as shown in the profiler log. | |
getPossibleErrors () | |
Returns a list of all possible errors returned by the module. | |
getProfileDBTime () | |
Total time the module used the database. | |
getProfileTime () | |
Total time the module was executed. | |
getRequireMaxOneParameterErrorMessages ($params) | |
Generates the possible error requireMaxOneParameter() can die with. | |
getRequireOnlyOneParameterErrorMessages ($params) | |
Generates the possible errors requireOnlyOneParameter() can die with. | |
getResult () | |
Get the result object. | |
getResultData () | |
Get the result data array (read-only) | |
getTokenSalt () | |
Returns the token salt if there is one, '' if the module doesn't require a salt, else false if the module doesn't need a token. | |
getVersion () | |
Returns a string that identifies the version of the extending class. | |
getWatchlistUser ($params) | |
Gets the user for whom to get the watchlist. | |
isMain () | |
Returns true if this module is the main module ($this === $this->mMainModule), false otherwise. | |
isReadMode () | |
Indicates whether this module requires read rights. | |
isWriteMode () | |
Indicates whether this module requires write mode. | |
makeHelpMsg () | |
Generates help message for this module, or false if there is no description. | |
makeHelpMsg_callback ($matches) | |
Callback for preg_replace_callback() call in makeHelpMsg(). | |
makeHelpMsgParameters () | |
Generates the parameter descriptions for this module, to be displayed in the module's help. | |
mustBePosted () | |
Indicates whether this module must be called with a POST request. | |
needsToken () | |
Returns whether this module requires a Token to execute. | |
parseErrors ($errors) | |
Parses a list of errors into a standardised format. | |
parseMsg ($error) | |
Return the error message related to a certain array. | |
profileDBIn () | |
Start module profiling. | |
profileDBOut () | |
End database profiling. | |
profileIn () | |
Start module profiling. | |
profileOut () | |
End module profiling. | |
requireMaxOneParameter ($params) | |
Die if more than one of a certain set of parameters is set and not false. | |
requireOnlyOneParameter ($params) | |
Die if none or more than one of a certain set of parameters is set and not false. | |
safeProfileOut () | |
When modules crash, sometimes it is needed to do a profileOut() regardless of the profiling state the module was in. | |
setWarning ($warning) | |
Set warning section for this module. | |
shouldCheckMaxlag () | |
Indicates if this module needs maxlag to be checked. | |
validateLimit ($paramName, &$value, $min, $max, $botMax=null, $enforceLimits=false) | |
Validate the value against the minimum and user/bot maximum limits. | |
validateTimestamp ($value, $paramName) | |
Static Public Member Functions | |
static | debugPrint ($value, $name= 'unknown', $backtrace=false) |
Debugging function that prints a value and an optional backtrace. | |
static | getBaseVersion () |
Returns a string that identifies the version of this class. | |
static | getValidNamespaces () |
static | truncateArray (&$arr, $limit) |
Truncate an array to a certain length. | |
Public Attributes | |
$mDBTime = 0 | |
$mModuleName | |
$mModulePrefix | |
$mModuleTime = 0 | |
const | LIMIT_BIG1 = 500 |
const | LIMIT_BIG2 = 5000 |
const | LIMIT_SML1 = 50 |
const | LIMIT_SML2 = 500 |
const | PARAM_ALLOW_DUPLICATES = 6 |
const | PARAM_DEPRECATED = 7 |
const | PARAM_DFLT = 0 |
const | PARAM_ISMULTI = 1 |
const | PARAM_MAX = 3 |
const | PARAM_MAX2 = 4 |
const | PARAM_MIN = 5 |
const | PARAM_RANGE_ENFORCE = 9 |
const | PARAM_REQUIRED = 8 |
const | PARAM_TYPE = 2 |
Static Public Attributes | |
static | $messageMap |
Array that maps message keys to error messages. | |
Protected Member Functions | |
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. | |
getDB () | |
getDescription () | |
Returns the description string for this module. | |
getExamples () | |
Returns usage examples for this module. | |
getParamDescription () | |
Returns an array of parameter descriptions. | |
getParameter ($paramName, $parseLimit=true) | |
Get a value for the given parameter. | |
getParameterFromSettings ($paramName, $paramSettings, $parseLimit) | |
Using the settings determine the value for the given parameter. | |
getWatchlistValue ($watchlist, $titleObj, $userOption=null) | |
Return true if we're to watch the page, false if not, null if no change. | |
makeHelpArrayToString ($prefix, $title, $input) | |
parseMultiValue ($valueName, $value, $allowMultiple, $allowedValues) | |
Return an array of values that were given in a 'a|b|c' notation, after it optionally validates them against the list allowed values. | |
setWatch ($watch, $titleObj, $userOption=null) | |
Set a watch (or unwatch) based the based on a watchlist parameter. | |
Static Protected Member Functions | |
static | dieDebug ($method, $message) |
Internal code errors should be reported with this method. | |
Private Member Functions | |
indentExampleText ($item) | |
parameterNotEmpty ($x) | |
Callback function used in requireOnlyOneParameter to check whether reequired parameters are set. | |
warnOrDie ($msg, $enforceLimits=false) | |
Adds a warning to the output, else dies. | |
Private Attributes | |
$mDBTimeIn = 0 | |
Profiling: database execution time. | |
$mMainModule | |
$mParamCache = array() | |
$mTimeIn = 0 | |
Profiling: total module execution time. |
This abstract class implements many basic API functions, and is the base of all API classes.
The class functions are divided into several areas of functionality:
Module parameters: Derived classes can define getAllowedParams() to specify which parameters to expect, how to parse and validate them.
Profiling: various methods to allow keeping tabs on various tasks and their time costs
Self-documentation: code to allow the API to document its own state
Definition at line 42 of file ApiBase.php.
ApiBase::__construct | ( | $ | mainModule, |
$ | moduleName, | ||
$ | modulePrefix = '' |
||
) |
Constructor.
$mainModule | ApiMain object |
$moduleName | string Name of this module |
$modulePrefix | string Prefix to use for parameter names |
Reimplemented in ApiQueryGeneratorBase, ApiPageSet, and ApiQueryImageInfo.
Definition at line 71 of file ApiBase.php.
References isMain(), and ContextSource\setContext().
Create a new RequestContext object to use e.g.
for calls to other parts the software. The object will have the WebRequest and the User object set to the ones used in this instance.
Definition at line 189 of file ApiBase.php.
References ContextSource\getContext(), and wfDeprecated().
static ApiBase::debugPrint | ( | $ | value, |
$ | name = 'unknown' , |
||
$ | backtrace = false |
||
) | [static] |
Debugging function that prints a value and an optional backtrace.
$value | mixed Value to print |
$name | string Description of the printed value |
$backtrace | bool If true, print a backtrace |
Definition at line 1555 of file ApiBase.php.
References print, and wfBacktrace().
static ApiBase::dieDebug | ( | $ | method, |
$ | message | ||
) | [static, protected] |
Internal code errors should be reported with this method.
$method | string Method or function name |
$message | string Error message |
Definition at line 1299 of file ApiBase.php.
References wfDebugDieBacktrace().
Referenced by ApiQueryLinks\__construct(), ApiQueryBase\addJoinConds(), ApiQueryBase\addTables(), ApiQuerySiteinfo\appendInterwikiMap(), ApiQueryAllUsers\execute(), ApiQuerySiteinfo\execute(), ApiLogin\execute(), ApiFormatRaw\execute(), ApiQueryRevisions\execute(), ApiResult\execute(), ApiFormatFeedWrapper\execute(), ApiQueryBacklinks\getDescription(), ApiFormatRaw\getMimeType(), getParameterFromSettings(), getProfileDBTime(), getProfileTime(), getResult(), ApiPageSet\initFromQueryResult(), ApiQuery\newGenerator(), profileDBIn(), profileDBOut(), profileIn(), profileOut(), ApiFormatXml\recXmlPrint(), ApiResult\setContent(), ApiResult\setElement(), ApiResult\setIndexedTagName(), and ApiFormatWddx\slowWddxPrinter().
Helper function for readonly errors.
Definition at line 1246 of file ApiBase.php.
References dieUsage(), parseMsg(), and wfReadOnlyReason().
Referenced by ApiMain\checkExecutePermissions(), and ApiEditPage\execute().
ApiBase::dieUsage | ( | $ | description, |
$ | errorCode, | ||
$ | httpRespCode = 0 , |
||
$ | extradata = null |
||
) |
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an error message.
$description | string One-line human-readable description of the error condition, e.g., "The API requires a valid action parameter" |
$errorCode | string Brief, arbitrary, stable string to allow easy automated identification of the error, e.g., 'unknown_action' |
$httpRespCode | int HTTP response code |
$extradata | array Data to add to the <error> element; array in ApiResult format |
Definition at line 1083 of file ApiBase.php.
References encodeParamName(), and Profiler\instance().
Referenced by ApiQuerySiteinfo\appendDbReplLagInfo(), ApiUpload\checkAsyncDownloadEnabled(), ApiMain\checkMaxLag(), ApiMain\createPrinterByName(), dieReadOnly(), ApiUpload\dieRecoverableError(), dieUsageMsg(), ApiComparePages\execute(), ApiQueryStashImageInfo\execute(), ApiParse\execute(), ApiQueryAllUsers\execute(), ApiQueryDeletedrevs\execute(), ApiWatch\execute(), ApiQueryLangLinks\execute(), ApiQueryIWLinks\execute(), ApiQueryFilearchive\execute(), ApiEditPage\execute(), ApiHelp\execute(), ApiUnblock\execute(), ApiQueryBlocks\execute(), ApiUpload\execute(), ApiQueryImageInfo\execute(), ApiQueryLogEvents\execute(), ApiQueryContributions\execute(), ApiDisabled\execute(), ApiBlock\execute(), ApiFeedContributions\execute(), ApiFeedWatchlist\execute(), ApiQueryRevisions\execute(), ApiQueryInfo\execute(), ApiPageSet\execute(), ApiQueryAllpages\executeGenerator(), ApiQueryAllimages\executeGenerator(), ApiQueryRevisions\extractRowInfo(), ApiUpload\getChunkResult(), getParameterFromSettings(), ApiQueryImageInfo\getScale(), ApiParse\getSectionText(), ApiUpload\getStashResult(), getWatchlistUser(), ApiQueryImageInfo\mergeThumbParams(), ApiQuery\newGenerator(), ApiQueryBacklinks\parseContinueParam(), parseMultiValue(), ApiUpload\performUpload(), ApiQueryContributions\prepareQuery(), ApiQueryBase\prepareUrlQuerySearchString(), ApiQueryContributions\prepareUsername(), ApiQueryBlocks\prepareUsername(), ApiQueryBacklinks\processContinue(), requireMaxOneParameter(), requireOnlyOneParameter(), ApiComparePages\revisionOrTitle(), ApiQueryImages\run(), ApiQuerySearch\run(), ApiQueryLangBacklinks\run(), ApiQueryIWBacklinks\run(), ApiQueryWatchlistRaw\run(), ApiQueryCategories\run(), ApiQueryAllLinks\run(), ApiQueryDuplicateFiles\run(), ApiQueryCategoryMembers\run(), ApiQueryWatchlist\run(), ApiQueryAllpages\run(), ApiQueryAllimages\run(), ApiQueryLinks\run(), ApiQueryRecentChanges\run(), ApiUpload\selectUploadModule(), ApiMain\setupExecuteAction(), validateTimestamp(), ApiUpload\verifyUpload(), and warnOrDie().
ApiBase::dieUsageMsg | ( | $ | error | ) |
Output the error message related to a certain array.
$error | (array|string) Element of a getUserPermissionsErrors()-style array |
Definition at line 1256 of file ApiBase.php.
References dieUsage(), and parseMsg().
Referenced by ApiMain\checkExecutePermissions(), ApiFileRevert\checkPermissions(), ApiUpload\checkPermissions(), ApiParse\execute(), ApiProtect\execute(), ApiUndelete\execute(), ApiEmailUser\execute(), ApiMove\execute(), ApiQueryAllmessages\execute(), ApiImport\execute(), ApiWatch\execute(), ApiQueryLangLinks\execute(), ApiQueryIWLinks\execute(), ApiPatrol\execute(), ApiEditPage\execute(), ApiExpandTemplates\execute(), ApiPurge\execute(), ApiUnblock\execute(), ApiUpload\execute(), ApiQueryBlocks\execute(), ApiBlock\execute(), ApiRollback\execute(), ApiDelete\execute(), ApiQueryRevisions\execute(), getParameterFromSettings(), ApiRollback\getRbTitle(), ApiRollback\getRbUser(), ApiUserrights\getUrUser(), ApiQueryBase\keyToTitle(), ApiQueryContributions\prepareQuery(), ApiQueryBacklinks\processContinue(), ApiComparePages\revisionOrTitle(), ApiQueryIWBacklinks\run(), ApiQueryLangBacklinks\run(), ApiQueryWatchlistRaw\run(), ApiQueryCategoryMembers\run(), ApiQueryCategories\run(), ApiQueryWatchlist\run(), ApiQueryQueryPage\run(), ApiQueryRecentChanges\run(), ApiUpload\selectUploadModule(), ApiMain\setupExternalResponse(), ApiMain\setupModule(), ApiQueryBase\titleToKey(), and ApiFileRevert\validateParameters().
ApiBase::encodeParamName | ( | $ | paramName | ) |
This method mangles parameter name based on the prefix supplied to the constructor.
Override this method to change parameter name during runtime
$paramName | string Parameter name |
Reimplemented in ApiQueryGeneratorBase.
Definition at line 584 of file ApiBase.php.
Referenced by dieUsage(), getParameterFromSettings(), makeHelpMsgParameters(), ApiQueryBase\setContinueEnumParameter(), and validateLimit().
ApiBase::execute | ( | ) | [abstract] |
Evaluates the parameters, performs the requested query, and sets up the result.
Concrete implementations of ApiBase must override this method to provide whatever functionality their module offers. Implementations must not produce any output on their own and are not expected to handle any errors.
The execute() method will be invoked directly by ApiMain immediately before the result of the module is output. Aside from the constructor, implementations should assume that no other methods will be called externally on the module before the result is processed.
The result data should be stored in the ApiResult object available through getResult().
Reimplemented in ApiFormatFeedWrapper, ApiResult, ApiMain, ApiPageSet, ApiQueryInfo, ApiQuery, MockApi, ApiQueryRecentChanges, ApiQueryBacklinks, ApiQueryRevisions, ApiQueryUsers, ApiQueryLinks, ApiQueryQueryPage, ApiFormatJson, ApiFormatRaw, ApiFeedWatchlist, ApiFormatXml, ApiQueryAllimages, ApiLogin, ApiQueryTags, ApiDelete, ApiRollback, ApiBlock, ApiFeedContributions, ApiFileRevert, ApiFormatDbg, ApiFormatDump, ApiFormatTxt, ApiDisabled, ApiQueryBlocks, ApiQueryDisabled, ApiQueryImageInfo, ApiQueryLogEvents, ApiQueryContributions, ApiUpload, ApiParamInfo, ApiUnblock, ApiFormatPhp, ApiFormatWddx, ApiHelp, ApiPurge, ApiEditPage, ApiExpandTemplates, ApiOpenSearch, ApiPatrol, ApiQueryFilearchive, ApiQueryPageProps, ApiQueryRandom, ApiQueryUserInfo, ApiLogout, ApiQueryAllCategories, ApiQueryIWLinks, ApiQueryWatchlist, ApiQueryWatchlistRaw, ApiUserrights, ApiImport, ApiQueryAllLinks, ApiQueryAllmessages, ApiQueryAllpages, ApiQueryCategories, ApiQueryCategoryInfo, ApiQueryCategoryMembers, ApiQueryDeletedrevs, ApiQueryDuplicateFiles, ApiQueryExternalLinks, ApiQueryImages, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiQueryLangLinks, ApiQueryProtectedTitles, ApiQuerySearch, ApiQuerySiteinfo, ApiRsd, ApiWatch, ApiEmailUser, ApiMove, ApiQueryAllUsers, ApiProtect, ApiQueryExtLinksUsage, ApiUndelete, ApiParse, ApiQueryStashImageInfo, and ApiComparePages.
ApiBase::extractRequestParams | ( | $ | parseLimit = true | ) |
Using getAllowedParams(), this function makes an array of the values provided by the user, with key being the name of the variable, and value - validated value from user or default.
limits will not be parsed if $parseLimit is set to false; use this when the max limit is not definitive yet, e.g. when getting revisions.
$parseLimit | Boolean: true by default |
Definition at line 597 of file ApiBase.php.
References getFinalParams(), and getParameterFromSettings().
Referenced by ApiQuerySiteinfo\appendInterwikiMap(), ApiQuerySiteinfo\appendLanguages(), ApiComparePages\execute(), ApiQueryStashImageInfo\execute(), ApiParse\execute(), ApiUndelete\execute(), ApiProtect\execute(), ApiMove\execute(), ApiEmailUser\execute(), ApiQueryAllUsers\execute(), ApiQueryCategoryInfo\execute(), ApiQueryDeletedrevs\execute(), ApiQueryExternalLinks\execute(), ApiWatch\execute(), ApiQueryLangLinks\execute(), ApiImport\execute(), ApiQuerySiteinfo\execute(), ApiQueryAllmessages\execute(), ApiUserrights\execute(), ApiQueryIWLinks\execute(), ApiQueryUserInfo\execute(), ApiOpenSearch\execute(), ApiEditPage\execute(), ApiQueryFilearchive\execute(), ApiPatrol\execute(), ApiQueryPageProps\execute(), ApiExpandTemplates\execute(), ApiPurge\execute(), ApiHelp\execute(), ApiUnblock\execute(), ApiParamInfo\execute(), ApiQueryBlocks\execute(), ApiUpload\execute(), ApiQueryImageInfo\execute(), ApiQueryLogEvents\execute(), ApiQueryContributions\execute(), ApiFileRevert\execute(), ApiFeedContributions\execute(), ApiBlock\execute(), ApiRollback\execute(), ApiDelete\execute(), ApiQueryTags\execute(), ApiLogin\execute(), ApiFeedWatchlist\execute(), ApiFormatXml\execute(), ApiFormatJson\execute(), ApiQueryUsers\execute(), ApiQueryRevisions\execute(), ApiQuery\execute(), ApiQueryInfo\execute(), ApiPageSet\execute(), ApiFormatJson\getMimeType(), ApiRollback\getRbTitle(), ApiRollback\getRbUser(), ApiUserrights\getUrUser(), ApiQueryImages\run(), ApiQuerySearch\run(), ApiQueryLangBacklinks\run(), ApiQueryIWBacklinks\run(), ApiQueryProtectedTitles\run(), ApiQueryWatchlistRaw\run(), ApiQueryExtLinksUsage\run(), ApiQueryAllCategories\run(), ApiQueryAllLinks\run(), ApiQueryCategoryMembers\run(), ApiQueryCategories\run(), ApiQueryDuplicateFiles\run(), ApiQueryWatchlist\run(), ApiQueryAllpages\run(), ApiQueryQueryPage\run(), ApiQueryAllimages\run(), ApiQueryLinks\run(), ApiQueryRandom\run(), ApiQueryRecentChanges\run(), ApiQueryBacklinks\run(), and ApiMain\setupExecuteAction().
ApiBase::getAllowedParams | ( | ) | [protected] |
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 in ApiMain, ApiPageSet, ApiQueryInfo, ApiQuery, ApiQuerySiteinfo, ApiUpload, ApiQueryRevisions, ApiQueryRecentChanges, ApiParse, ApiQueryImageInfo, ApiQueryBacklinks, ApiEditPage, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryAllUsers, ApiQueryDeletedrevs, ApiQueryUsers, ApiQueryCategoryMembers, ApiParamInfo, ApiQueryBlocks, ApiFormatXml, ApiQueryFilearchive, ApiQueryAllmessages, ApiQuerySearch, ApiQueryAllpages, ApiDelete, ApiQueryLinks, ApiQueryCategories, ApiQueryUserInfo, ApiQueryAllimages, ApiLogin, ApiFeedWatchlist, ApiMove, ApiQueryAllLinks, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiBlock, ApiQueryProtectedTitles, ApiQueryQueryPage, ApiQueryImages, ApiQueryExtLinksUsage, MockApi, ApiFeedContributions, ApiQueryRandom, ApiProtect, ApiQueryAllCategories, ApiQueryIWLinks, ApiQueryTags, ApiQueryWatchlistRaw, ApiQueryDuplicateFiles, ApiQueryLangLinks, ApiPurge, ApiQueryPageProps, ApiFileRevert, ApiHelp, ApiQueryExternalLinks, ApiUnblock, ApiImport, ApiQueryCategoryInfo, ApiUndelete, ApiEmailUser, ApiUserrights, ApiComparePages, ApiOpenSearch, ApiWatch, ApiExpandTemplates, ApiRollback, ApiQueryStashImageInfo, ApiFormatJson, ApiPatrol, ApiRsd, ApiLogout, ApiDisabled, and ApiQueryDisabled.
Definition at line 528 of file ApiBase.php.
Referenced by getFinalParams().
static ApiBase::getBaseVersion | ( | ) | [static] |
Returns a string that identifies the version of this class.
Reimplemented in ApiQueryBase, and ApiFormatBase.
Definition at line 1568 of file ApiBase.php.
Referenced by ApiMain\getVersion().
If the module may only be used with a certain format module, it should override this method to return an instance of that formatter.
A value of null means the default format will be used.
Reimplemented in ApiQuery, ApiRsd, ApiFeedWatchlist, ApiFeedContributions, and ApiOpenSearch.
Definition at line 228 of file ApiBase.php.
ApiBase::getDB | ( | ) | [protected] |
Reimplemented in ApiQueryBase, ApiQuery, and ApiQueryAllimages.
Definition at line 1545 of file ApiBase.php.
References wfGetDB().
ApiBase::getDescription | ( | ) | [protected] |
Returns the description string for this module.
Reimplemented in ApiMain, ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiQuerySiteinfo, ApiQueryRecentChanges, ApiUpload, ApiParse, ApiQueryImageInfo, ApiQueryBacklinks, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryCategoryMembers, ApiQueryDeletedrevs, ApiEditPage, ApiQueryAllUsers, ApiFormatBase, ApiQueryBlocks, ApiQueryUsers, ApiParamInfo, ApiQueryAllpages, ApiQuerySearch, ApiQueryFilearchive, ApiQueryAllmessages, ApiQueryCategories, ApiDelete, ApiQueryExtLinksUsage, ApiQueryUserInfo, ApiQueryAllimages, ApiQueryLinks, ApiMove, ApiFormatXml, ApiQueryProtectedTitles, ApiFeedWatchlist, ApiQueryAllLinks, ApiLogin, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiQueryAllCategories, ApiBlock, ApiFeedContributions, ApiProtect, ApiQueryWatchlistRaw, ApiQueryImages, ApiQueryQueryPage, ApiQueryTags, ApiQueryIWLinks, ApiQueryRandom, ApiQueryLangLinks, ApiQueryDuplicateFiles, ApiFileRevert, ApiPurge, ApiQueryExternalLinks, ApiQueryPageProps, ApiHelp, ApiImport, ApiQueryStashImageInfo, ApiUndelete, ApiUnblock, ApiRollback, ApiUserrights, ApiEmailUser, ApiOpenSearch, ApiFormatWddx, ApiQueryCategoryInfo, ApiComparePages, ApiExpandTemplates, ApiWatch, ApiFormatJson, ApiPatrol, ApiRsd, ApiLogout, ApiDisabled, ApiQueryDisabled, ApiFormatDump, ApiFormatDbg, ApiFormatTxt, ApiFormatPhp, and ApiFormatYaml.
Definition at line 509 of file ApiBase.php.
Referenced by getFinalDescription().
ApiBase::getExamples | ( | ) | [protected] |
Returns usage examples for this module.
Return false if no examples are available.
Reimplemented in ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiUpload, ApiQueryRecentChanges, ApiQuerySiteinfo, ApiParse, ApiQueryImageInfo, ApiQueryBacklinks, ApiEditPage, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryDeletedrevs, ApiQueryCategoryMembers, ApiQueryAllUsers, ApiQueryBlocks, ApiQueryUsers, ApiQueryAllpages, ApiFormatBase, ApiParamInfo, ApiQuerySearch, ApiQueryFilearchive, ApiDelete, ApiQueryAllmessages, ApiMove, ApiQueryCategories, ApiQueryAllimages, ApiQueryExtLinksUsage, ApiQueryUserInfo, ApiQueryLinks, ApiFeedWatchlist, ApiQueryProtectedTitles, ApiLogin, ApiQueryAllLinks, ApiProtect, ApiBlock, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiFeedContributions, ApiQueryWatchlistRaw, ApiQueryAllCategories, ApiQueryImages, ApiQueryQueryPage, ApiRollback, ApiQueryIWLinks, ApiQueryTags, ApiQueryRandom, ApiFileRevert, ApiQueryLangLinks, ApiQueryDuplicateFiles, ApiImport, ApiPurge, ApiUndelete, ApiQueryExternalLinks, ApiUnblock, ApiQueryPageProps, ApiHelp, ApiEmailUser, ApiUserrights, ApiQueryStashImageInfo, ApiComparePages, ApiOpenSearch, ApiExpandTemplates, ApiWatch, ApiQueryCategoryInfo, ApiPatrol, ApiRsd, ApiLogout, ApiDisabled, and ApiQueryDisabled.
Definition at line 517 of file ApiBase.php.
Referenced by makeHelpMsg().
Get final module description, after hooks have had a chance to tweak it as needed.
Definition at line 572 of file ApiBase.php.
References getDescription(), and wfRunHooks().
Referenced by makeHelpMsg().
Get final parameter descriptions, after hooks have had a chance to tweak it as needed.
Definition at line 560 of file ApiBase.php.
References getParamDescription(), and wfRunHooks().
Referenced by makeHelpMsgParameters().
Get final list of parameters, after hooks have had a chance to tweak it as needed.
Definition at line 548 of file ApiBase.php.
References getAllowedParams(), and wfRunHooks().
Referenced by extractRequestParams(), getParameter(), getPossibleErrors(), and makeHelpMsgParameters().
Reimplemented in ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiUpload, ApiQuerySiteinfo, ApiQueryRecentChanges, ApiParse, ApiQueryImageInfo, ApiQueryBacklinks, ApiEditPage, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryDeletedrevs, ApiQueryCategoryMembers, ApiQueryAllUsers, ApiQueryBlocks, ApiQueryAllpages, ApiQueryUsers, ApiFormatBase, ApiParamInfo, ApiQuerySearch, ApiDelete, ApiQueryAllmessages, ApiQueryAllimages, ApiQueryCategories, ApiMove, ApiQueryExtLinksUsage, ApiQueryUserInfo, ApiQueryLinks, ApiFeedWatchlist, ApiQueryProtectedTitles, ApiLogin, ApiQueryAllLinks, ApiProtect, ApiBlock, ApiQueryAllCategories, ApiQueryImages, ApiRollback, ApiQueryLangLinks, ApiQueryDuplicateFiles, ApiImport, ApiPurge, ApiUndelete, ApiQueryExternalLinks, ApiUnblock, ApiHelp, ApiQueryPageProps, ApiEmailUser, ApiUserrights, ApiOpenSearch, ApiExpandTemplates, ApiWatch, ApiQueryCategoryInfo, ApiPatrol, and ApiLogout.
Definition at line 1378 of file ApiBase.php.
Referenced by makeHelpMsg().
ApiBase::getMain | ( | ) |
Get the main module.
Definition at line 146 of file ApiBase.php.
Referenced by ApiParamInfo\__construct(), ApiQueryBase\__construct(), ApiMain\__construct(), ApiParse\execute(), ApiQueryDeletedrevs\execute(), ApiOpenSearch\execute(), ApiExpandTemplates\execute(), ApiPurge\execute(), ApiHelp\execute(), ApiUnblock\execute(), ApiParamInfo\execute(), ApiUpload\execute(), ApiBlock\execute(), ApiLogin\execute(), ApiFeedWatchlist\execute(), ApiQueryRevisions\execute(), ApiQuery\execute(), ApiParamInfo\getAllowedParams(), ApiUpload\getChunkResult(), ApiParamInfo\getClassInfo(), ApiQueryUserInfo\getCurrentUserInfo(), ApiOpenSearch\getCustomPrinter(), ApiFeedContributions\getCustomPrinter(), ApiFeedWatchlist\getCustomPrinter(), ApiRsd\getCustomPrinter(), ApiQuery\getCustomPrinter(), getParameterFromSettings(), getResult(), ApiQueryUsers\getTokenFunctions(), ApiQueryRevisions\getTokenFunctions(), ApiQueryRecentChanges\getTokenFunctions(), ApiQueryInfo\getTokenFunctions(), ApiFormatBase\initPrinter(), makeHelpMsg(), profileDBOut(), ApiQueryBacklinks\run(), ApiUpload\selectUploadModule(), and validateLimit().
Get the name of the module being executed by this instance.
Definition at line 115 of file ApiBase.php.
Referenced by ApiQueryBase\addPageSubItem(), ApiQueryBase\addPageSubItems(), ApiQueryTags\doTag(), ApiComparePages\execute(), ApiQueryStashImageInfo\execute(), ApiParse\execute(), ApiProtect\execute(), ApiUndelete\execute(), ApiEmailUser\execute(), ApiMove\execute(), ApiQueryAllUsers\execute(), ApiWatch\execute(), ApiQueryDeletedrevs\execute(), ApiQueryAllmessages\execute(), ApiImport\execute(), ApiUserrights\execute(), ApiExpandTemplates\execute(), ApiPatrol\execute(), ApiQueryFilearchive\execute(), ApiEditPage\execute(), ApiQueryUserInfo\execute(), ApiPurge\execute(), ApiHelp\execute(), ApiParamInfo\execute(), ApiUnblock\execute(), ApiQueryBlocks\execute(), ApiQueryLogEvents\execute(), ApiQueryContributions\execute(), ApiUpload\execute(), ApiFileRevert\execute(), ApiBlock\execute(), ApiRollback\execute(), ApiDelete\execute(), ApiQueryTags\execute(), ApiQueryUsers\execute(), ApiQueryRevisions\execute(), ApiQueryBacklinks\getAllowedParams(), ApiQueryBacklinks\getDescription(), ApiQueryLinks\getExamples(), ApiFormatBase\getExamples(), ApiQueryBacklinks\getExamples(), ApiQueryBacklinks\getParamDescription(), getParameterFromSettings(), ApiQueryAllLinks\getPossibleErrors(), getPossibleErrors(), ApiMain\makeHelpMsg(), ApiQuerySearch\run(), ApiQueryProtectedTitles\run(), ApiQueryLangBacklinks\run(), ApiQueryIWBacklinks\run(), ApiQueryWatchlistRaw\run(), ApiQueryExtLinksUsage\run(), ApiQueryCategoryMembers\run(), ApiQueryAllCategories\run(), ApiQueryAllLinks\run(), ApiQueryWatchlist\run(), ApiQueryAllpages\run(), ApiQueryQueryPage\run(), ApiQueryAllimages\run(), ApiQueryRandom\run(), ApiQueryRecentChanges\run(), ApiQueryBacklinks\run(), ApiQueryRandom\runQuery(), ApiUpload\selectUploadModule(), ApiQueryBase\setContinueEnumParameter(), and setWarning().
Get parameter prefix (usually two letters or an empty string).
Definition at line 123 of file ApiBase.php.
Referenced by ApiQueryBase\addPageSubItem(), ApiQueryBase\addPageSubItems(), ApiQueryStashImageInfo\execute(), ApiQueryDeletedrevs\getDescription(), ApiUnblock\getParamDescription(), ApiQueryStashImageInfo\getParamDescription(), ApiQueryExternalLinks\getParamDescription(), ApiQueryAllLinks\getParamDescription(), ApiQueryProtectedTitles\getParamDescription(), ApiQueryExtLinksUsage\getParamDescription(), ApiMove\getParamDescription(), ApiDelete\getParamDescription(), ApiQueryAllpages\getParamDescription(), ApiQueryBlocks\getParamDescription(), ApiQueryCategoryMembers\getParamDescription(), ApiQueryDeletedrevs\getParamDescription(), ApiQueryWatchlist\getParamDescription(), ApiQueryContributions\getParamDescription(), ApiQueryLogEvents\getParamDescription(), ApiEditPage\getParamDescription(), ApiParse\getParamDescription(), ApiQueryImageInfo\getParamDescription(), ApiQueryRecentChanges\getParamDescription(), ApiQuerySiteinfo\getParamDescription(), ApiQueryRevisions\getParamDescription(), ApiQueryImageInfo\getPossibleErrors(), getRequireMaxOneParameterErrorMessages(), getRequireOnlyOneParameterErrorMessages(), ApiQueryImageInfo\getScale(), ApiQueryImageInfo\mergeThumbParams(), ApiQueryProtectedTitles\run(), and ApiQueryExtLinksUsage\run().
ApiBase::getModuleProfileName | ( | $ | db = false | ) |
Get the name of the module as shown in the profiler log.
$db | DatabaseBase |
Definition at line 134 of file ApiBase.php.
Referenced by profileDBIn(), profileDBOut(), profileIn(), and profileOut().
ApiBase::getParamDescription | ( | ) | [protected] |
Returns an array of parameter descriptions.
Don't call this functon directly: use getFinalParamDescription() to allow hooks to modify descriptions as needed.
Reimplemented in ApiMain, ApiPageSet, ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiQuerySiteinfo, ApiUpload, ApiQueryRecentChanges, ApiQueryImageInfo, ApiParse, ApiQueryBacklinks, ApiEditPage, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryDeletedrevs, ApiQueryCategoryMembers, ApiQueryAllUsers, ApiQueryUsers, ApiParamInfo, ApiQueryBlocks, ApiQueryAllpages, ApiQuerySearch, ApiQueryFilearchive, ApiQueryAllmessages, ApiQueryCategories, ApiDelete, ApiQueryLinks, ApiFormatXml, ApiQueryAllimages, ApiQueryUserInfo, ApiMove, ApiQueryExtLinksUsage, ApiFeedWatchlist, ApiQueryProtectedTitles, ApiQueryAllLinks, ApiLogin, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiFeedContributions, ApiQueryAllCategories, ApiProtect, ApiBlock, ApiQueryImages, ApiQueryWatchlistRaw, ApiQueryQueryPage, ApiQueryTags, ApiQueryIWLinks, ApiQueryRandom, ApiQueryDuplicateFiles, ApiQueryLangLinks, ApiFileRevert, ApiPurge, ApiQueryPageProps, ApiHelp, ApiQueryExternalLinks, ApiImport, ApiUndelete, ApiQueryStashImageInfo, ApiUnblock, ApiUserrights, ApiRollback, ApiEmailUser, ApiOpenSearch, ApiQueryCategoryInfo, ApiComparePages, ApiExpandTemplates, ApiWatch, ApiFormatJson, ApiPatrol, ApiRsd, ApiLogout, ApiDisabled, and ApiQueryDisabled.
Definition at line 538 of file ApiBase.php.
Referenced by getFinalParamDescription().
ApiBase::getParameter | ( | $ | paramName, |
$ | parseLimit = true |
||
) | [protected] |
Get a value for the given parameter.
$paramName | string Parameter name |
$parseLimit | bool see extractRequestParams() |
Definition at line 620 of file ApiBase.php.
References getFinalParams(), and getParameterFromSettings().
Referenced by ApiQuery\getCustomPrinter(), ApiMain\sendCacheHeaders(), ApiMain\setupExecuteAction(), and ApiMain\substituteResultWithError().
ApiBase::getParameterFromSettings | ( | $ | paramName, |
$ | paramSettings, | ||
$ | parseLimit | ||
) | [protected] |
Using the settings determine the value for the given parameter.
$paramName | String: parameter name |
$paramSettings | Mixed: default value or an array of settings using PARAM_* constants. |
$parseLimit | Boolean: parse limit? |
Definition at line 781 of file ApiBase.php.
References $title, dieDebug(), dieUsage(), dieUsageMsg(), encodeParamName(), getMain(), getModuleName(), ContextSource\getRequest(), getResult(), getValidNamespaces(), Title\makeTitleSafe(), PARAM_ALLOW_DUPLICATES, PARAM_DEPRECATED, PARAM_DFLT, PARAM_ISMULTI, PARAM_MAX, PARAM_MAX2, PARAM_MIN, PARAM_RANGE_ENFORCE, PARAM_REQUIRED, PARAM_TYPE, parseMultiValue(), setWarning(), validateLimit(), and validateTimestamp().
Referenced by extractRequestParams(), and getParameter().
Returns a list of all possible errors returned by the module.
Reimplemented in ApiMain, ApiPageSet, ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiQuerySiteinfo, ApiQueryRecentChanges, ApiUpload, ApiParse, ApiQueryImageInfo, ApiQueryBase, ApiQueryBacklinks, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryDeletedrevs, ApiQueryCategoryMembers, ApiEditPage, ApiQueryAllUsers, ApiQueryBlocks, ApiQueryAllpages, ApiQuerySearch, ApiQueryFilearchive, ApiQueryCategories, ApiDelete, ApiQueryExtLinksUsage, ApiQueryAllimages, ApiMove, ApiFeedWatchlist, ApiQueryAllLinks, ApiLogin, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiBlock, ApiFeedContributions, ApiProtect, ApiQueryWatchlistRaw, ApiQueryImages, ApiQueryQueryPage, ApiQueryIWLinks, ApiQueryLangLinks, ApiQueryDuplicateFiles, ApiFileRevert, ApiPurge, ApiQueryExternalLinks, ApiImport, ApiUndelete, ApiRollback, ApiUnblock, ApiEmailUser, ApiComparePages, ApiExpandTemplates, ApiWatch, and ApiPatrol.
Definition at line 1386 of file ApiBase.php.
References getFinalParams(), getModuleName(), isReadMode(), isWriteMode(), mustBePosted(), needsToken(), and PARAM_REQUIRED.
Total time the module used the database.
Definition at line 1535 of file ApiBase.php.
References dieDebug().
Total time the module was executed.
Definition at line 1486 of file ApiBase.php.
References dieDebug().
ApiBase::getRequireMaxOneParameterErrorMessages | ( | $ | params | ) |
Generates the possible error requireMaxOneParameter() can die with.
$params | array |
Definition at line 683 of file ApiBase.php.
References getModulePrefix().
ApiBase::getRequireOnlyOneParameterErrorMessages | ( | $ | params | ) |
Generates the possible errors requireOnlyOneParameter() can die with.
$params | array |
Definition at line 650 of file ApiBase.php.
References getModulePrefix().
Referenced by ApiMove\getPossibleErrors(), ApiDelete\getPossibleErrors(), ApiQueryBlocks\getPossibleErrors(), ApiQueryCategoryMembers\getPossibleErrors(), and ApiUpload\getPossibleErrors().
Get the result object.
Reimplemented in ApiMain.
Definition at line 163 of file ApiBase.php.
References dieDebug(), getMain(), and isMain().
Referenced by ApiQueryBase\addPageSubItem(), ApiQueryBase\addPageSubItems(), ApiQuerySiteinfo\appendDbReplLagInfo(), ApiQuerySiteinfo\appendExtensions(), ApiQuerySiteinfo\appendExtensionTags(), ApiQuerySiteinfo\appendFileExtensions(), ApiQuerySiteinfo\appendFunctionHooks(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendInterwikiMap(), ApiQuerySiteinfo\appendLanguages(), ApiQuerySiteinfo\appendMagicWords(), ApiQuerySiteinfo\appendNamespaceAliases(), ApiQuerySiteinfo\appendNamespaces(), ApiQuerySiteinfo\appendRightsInfo(), ApiQuerySiteinfo\appendSkins(), ApiQuerySiteinfo\appendSpecialPageAliases(), ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendSubscribedHooks(), ApiQuerySiteinfo\appendUserGroups(), ApiComparePages\execute(), ApiQueryStashImageInfo\execute(), ApiParse\execute(), ApiProtect\execute(), ApiUndelete\execute(), ApiMove\execute(), ApiQueryAllUsers\execute(), ApiEmailUser\execute(), ApiQueryAllmessages\execute(), ApiQueryDeletedrevs\execute(), ApiRsd\execute(), ApiWatch\execute(), ApiImport\execute(), ApiUserrights\execute(), ApiExpandTemplates\execute(), ApiOpenSearch\execute(), ApiQueryUserInfo\execute(), ApiQueryFilearchive\execute(), ApiQueryPageProps\execute(), ApiEditPage\execute(), ApiPatrol\execute(), ApiHelp\execute(), ApiPurge\execute(), ApiParamInfo\execute(), ApiUnblock\execute(), ApiQueryContributions\execute(), ApiQueryBlocks\execute(), ApiQueryImageInfo\execute(), ApiUpload\execute(), ApiQueryLogEvents\execute(), ApiFileRevert\execute(), ApiBlock\execute(), ApiFeedContributions\execute(), ApiRollback\execute(), ApiDelete\execute(), ApiQueryTags\execute(), ApiLogin\execute(), ApiFeedWatchlist\execute(), ApiQueryUsers\execute(), ApiQueryRevisions\execute(), ApiQueryInfo\execute(), ApiQueryInfo\extractPageInfo(), ApiQueryBacklinks\extractRedirRowInfo(), ApiQueryWatchlist\extractRowInfo(), ApiQueryLogEvents\extractRowInfo(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), ApiQueryRevisions\extractRowInfo(), ApiParse\formatCategoryLinks(), ApiParse\formatCss(), ApiParse\formatHeadItems(), ApiParse\formatIWLinks(), ApiParse\formatLangLinks(), ApiParse\formatLinks(), ApiRsd\formatRsdApiList(), ApiParamInfo\getClassInfo(), ApiQueryUserInfo\getCurrentUserInfo(), getParameterFromSettings(), getResultData(), ApiQuery\outputGeneralPageInfo(), ApiUpload\performUpload(), ApiQuerySearch\run(), ApiQueryIWBacklinks\run(), ApiQueryLangBacklinks\run(), ApiQueryProtectedTitles\run(), ApiQueryWatchlistRaw\run(), ApiQueryExtLinksUsage\run(), ApiQueryCategoryMembers\run(), ApiQueryAllLinks\run(), ApiQueryAllCategories\run(), ApiQueryWatchlist\run(), ApiQueryAllpages\run(), ApiQueryQueryPage\run(), ApiQueryAllimages\run(), ApiQueryRandom\run(), ApiQueryRecentChanges\run(), ApiQueryBacklinks\run(), ApiQueryRandom\runQuery(), ApiUpload\selectUploadModule(), ApiQueryBase\setContinueEnumParameter(), ApiParse\setIndexedTagNames(), setWarning(), ApiUpload\transformWarnings(), and ApiUpload\verifyUpload().
Get the result data array (read-only)
Definition at line 176 of file ApiBase.php.
References getResult().
Referenced by ApiFormatPhp\execute(), ApiFormatWddx\execute(), ApiQueryImageInfo\execute(), ApiFormatDbg\execute(), ApiFormatTxt\execute(), ApiFormatDump\execute(), ApiFormatXml\execute(), ApiFormatRaw\execute(), ApiFormatJson\execute(), ApiFormatFeedWrapper\execute(), and ApiFormatRaw\getMimeType().
Returns the token salt if there is one, '' if the module doesn't require a salt, else false if the module doesn't need a token.
Reimplemented in ApiUpload, ApiEditPage, ApiDelete, ApiMove, ApiProtect, ApiBlock, ApiFileRevert, ApiImport, ApiUndelete, ApiUnblock, ApiRollback, ApiEmailUser, ApiUserrights, ApiPatrol, and ApiWatch.
Definition at line 1346 of file ApiBase.php.
static ApiBase::getValidNamespaces | ( | ) | [static] |
Definition at line 707 of file ApiBase.php.
References wfDeprecated().
Referenced by getParameterFromSettings().
ApiBase::getVersion | ( | ) | [abstract] |
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 in ApiMain, ApiPageSet, ApiQueryInfo, ApiQuery, ApiQueryRevisions, ApiUpload, ApiQuerySiteinfo, ApiQueryRecentChanges, ApiParse, ApiQueryImageInfo, ApiQueryBacklinks, ApiEditPage, ApiQueryLogEvents, ApiQueryContributions, ApiQueryWatchlist, ApiQueryDeletedrevs, ApiQueryCategoryMembers, ApiFormatFeedWrapper, ApiQueryAllUsers, ApiResult, ApiQueryBlocks, ApiQueryAllpages, ApiQueryUsers, ApiParamInfo, ApiQuerySearch, ApiQueryFilearchive, ApiDelete, ApiQueryAllmessages, ApiQueryAllimages, ApiQueryCategories, ApiMove, ApiQueryExtLinksUsage, ApiQueryUserInfo, ApiQueryLinks, ApiFeedWatchlist, ApiQueryProtectedTitles, ApiLogin, ApiQueryAllLinks, ApiFormatXml, ApiProtect, ApiBlock, ApiQueryIWBacklinks, ApiQueryLangBacklinks, ApiFeedContributions, ApiQueryAllCategories, ApiQueryWatchlistRaw, ApiQueryImages, ApiRollback, ApiQueryQueryPage, ApiQueryIWLinks, ApiQueryLangLinks, ApiQueryTags, ApiFileRevert, ApiQueryDuplicateFiles, ApiQueryRandom, ApiFormatXmlRsd, ApiImport, ApiPurge, ApiUndelete, ApiRsd, ApiQueryExternalLinks, ApiHelp, ApiUnblock, ApiQueryPageProps, ApiEmailUser, ApiUserrights, MockApi, ApiQueryStashImageInfo, ApiComparePages, ApiOpenSearch, ApiExpandTemplates, ApiWatch, ApiQueryCategoryInfo, ApiFormatWddx, ApiPatrol, ApiFormatJson, ApiLogout, ApiFormatRaw, ApiDisabled, ApiQueryDisabled, ApiFormatDump, ApiFormatDbg, ApiFormatTxt, ApiFormatPhp, and ApiFormatYaml.
Referenced by makeHelpMsg().
ApiBase::getWatchlistUser | ( | $ | params | ) |
Gets the user for whom to get the watchlist.
$params | array |
Definition at line 1356 of file ApiBase.php.
References $user, dieUsage(), ContextSource\getUser(), and User\newFromName().
Referenced by ApiQueryWatchlistRaw\run(), and ApiQueryWatchlist\run().
ApiBase::getWatchlistValue | ( | $ | watchlist, |
$ | titleObj, | ||
$ | userOption = null |
||
) | [protected] |
Return true if we're to watch the page, false if not, null if no change.
$watchlist | String Valid values: 'watch', 'unwatch', 'preferences', 'nochange' |
$titleObj | Title the page under consideration |
$userOption | String The user option to consider when $watchlist=preferences. If not set will magically default to either watchdefault or watchcreations |
Definition at line 720 of file ApiBase.php.
References ContextSource\getUser().
Referenced by ApiEditPage\execute(), ApiUpload\performUpload(), and setWatch().
ApiBase::indentExampleText | ( | $ | item | ) | [private] |
ApiBase::isMain | ( | ) |
Returns true if this module is the main module ($this === $this->mMainModule), false otherwise.
Definition at line 155 of file ApiBase.php.
Referenced by __construct(), and getResult().
Indicates whether this module requires read rights.
Reimplemented in ApiMain, ApiParamInfo, ApiLogin, ApiHelp, ApiLogout, and ApiDisabled.
Definition at line 1315 of file ApiBase.php.
Referenced by getPossibleErrors(), and makeHelpMsg().
Indicates whether this module requires write mode.
Reimplemented in ApiUpload, ApiEditPage, ApiDelete, ApiMove, ApiBlock, ApiProtect, ApiPurge, ApiFileRevert, ApiUnblock, ApiImport, ApiUndelete, ApiEmailUser, ApiUserrights, ApiRollback, ApiWatch, and ApiPatrol.
Definition at line 1322 of file ApiBase.php.
Referenced by getPossibleErrors(), and makeHelpMsg().
ApiBase::makeHelpArrayToString | ( | $ | prefix, |
$ | title, | ||
$ | input | ||
) | [protected] |
$prefix | string Text to split output items |
$title | string What is being output |
$input | string|array |
Definition at line 331 of file ApiBase.php.
References $input, and $title.
Referenced by makeHelpMsg().
Generates help message for this module, or false if there is no description.
Reimplemented in ApiMain, and ApiQuery.
Definition at line 236 of file ApiBase.php.
References getExamples(), getFinalDescription(), getHelpUrls(), getMain(), getVersion(), isReadMode(), isWriteMode(), makeHelpArrayToString(), makeHelpMsgParameters(), and mustBePosted().
ApiBase::makeHelpMsg_callback | ( | $ | matches | ) |
Callback for preg_replace_callback() call in makeHelpMsg().
Replaces a source file name with a link to ViewVC
$matches | array |
Definition at line 474 of file ApiBase.php.
References $file, $matches, $path, $wgAutoloadClasses, and $wgAutoloadLocalClasses.
Generates the parameter descriptions for this module, to be displayed in the module's help.
Reimplemented in ApiQuery.
Definition at line 354 of file ApiBase.php.
References $t, encodeParamName(), false, getFinalParamDescription(), getFinalParams(), MWNamespace\getValidNamespaces(), PARAM_DEPRECATED, PARAM_DFLT, PARAM_REQUIRED, and PARAM_TYPE.
Referenced by makeHelpMsg().
Indicates whether this module must be called with a POST request.
Reimplemented in ApiUpload, ApiEditPage, ApiDelete, ApiLogin, ApiMove, ApiBlock, ApiProtect, ApiFileRevert, ApiUnblock, ApiImport, ApiUndelete, ApiEmailUser, ApiUserrights, ApiRollback, ApiWatch, and ApiPatrol.
Definition at line 1330 of file ApiBase.php.
Referenced by getPossibleErrors(), and makeHelpMsg().
Returns whether this module requires a Token to execute.
Reimplemented in ApiUpload, ApiEditPage, ApiDelete, ApiMove, ApiProtect, ApiBlock, ApiFileRevert, ApiImport, ApiUndelete, ApiUnblock, ApiRollback, ApiEmailUser, ApiUserrights, ApiPatrol, and ApiWatch.
Definition at line 1338 of file ApiBase.php.
Referenced by getPossibleErrors().
ApiBase::parameterNotEmpty | ( | $ | x | ) | [private] |
Callback function used in requireOnlyOneParameter to check whether reequired parameters are set.
$x | object Parameter to check is not null/false |
Definition at line 698 of file ApiBase.php.
ApiBase::parseErrors | ( | $ | errors | ) |
Parses a list of errors into a standardised format.
$errors | array List of errors. Items can be in the for array( key, param1, param2, ... ) or array( 'code' => ..., 'info' => ... ) |
Definition at line 1424 of file ApiBase.php.
References parseMsg().
Referenced by ApiParamInfo\getClassInfo().
ApiBase::parseMsg | ( | $ | error | ) |
Return the error message related to a certain array.
$error | array Element of a getUserPermissionsErrors()-style array |
Definition at line 1271 of file ApiBase.php.
References wfMsgReplaceArgs().
Referenced by dieReadOnly(), ApiUpload\dieRecoverableError(), dieUsageMsg(), ApiMove\execute(), ApiPurge\execute(), ApiMove\moveSubpages(), and parseErrors().
ApiBase::parseMultiValue | ( | $ | valueName, |
$ | value, | ||
$ | allowMultiple, | ||
$ | allowedValues | ||
) | [protected] |
Return an array of values that were given in a 'a|b|c' notation, after it optionally validates them against the list allowed values.
$valueName | string The name of the parameter (for error reporting) |
$value | mixed The value being parsed |
$allowMultiple | bool Can $value contain more than one value separated by '|'? |
$allowedValues | mixed An array of values to check against. If null, all values are accepted. |
Definition at line 947 of file ApiBase.php.
References dieUsage(), LIMIT_SML1, and setWarning().
Referenced by getParameterFromSettings().
Start module profiling.
Definition at line 1501 of file ApiBase.php.
References dieDebug(), getModuleProfileName(), and wfProfileIn().
Referenced by ApiQueryBase\checkRowCount(), ApiQuery\getDB(), ApiQuery\getNamedDB(), ApiPageSet\getRedirectTargets(), ApiPageSet\initFromPageIds(), ApiPageSet\initFromRevIDs(), ApiPageSet\initFromTitles(), ApiPageSet\resolvePendingRedirects(), and ApiQueryBase\select().
End database profiling.
Definition at line 1515 of file ApiBase.php.
References dieDebug(), getMain(), getModuleProfileName(), and wfProfileOut().
Referenced by ApiQueryBase\checkRowCount(), ApiQuery\getDB(), ApiQuery\getNamedDB(), ApiPageSet\getRedirectTargets(), ApiPageSet\initFromPageIds(), ApiPageSet\initFromRevIDs(), ApiPageSet\initFromTitles(), ApiPageSet\resolvePendingRedirects(), safeProfileOut(), and ApiQueryBase\select().
Start module profiling.
Definition at line 1445 of file ApiBase.php.
References dieDebug(), getModuleProfileName(), and wfProfileIn().
Referenced by ApiPageSet\execute(), ApiMain\execute(), ApiPageSet\finishPageSetGeneration(), ApiPageSet\populateFromPageIDs(), ApiPageSet\populateFromQueryResult(), ApiPageSet\populateFromRevisionIDs(), and ApiPageSet\populateFromTitles().
End module profiling.
Definition at line 1456 of file ApiBase.php.
References dieDebug(), getModuleProfileName(), and wfProfileOut().
Referenced by ApiPageSet\execute(), ApiMain\execute(), ApiPageSet\finishPageSetGeneration(), ApiPageSet\populateFromPageIDs(), ApiPageSet\populateFromQueryResult(), ApiPageSet\populateFromRevisionIDs(), ApiPageSet\populateFromTitles(), and safeProfileOut().
ApiBase::requireMaxOneParameter | ( | $ | params | ) |
Die if more than one of a certain set of parameters is set and not false.
$params | array |
Definition at line 665 of file ApiBase.php.
References dieUsage().
Referenced by ApiQueryBlocks\execute().
ApiBase::requireOnlyOneParameter | ( | $ | params | ) |
Die if none or more than one of a certain set of parameters is set and not false.
$params | array of parameter names |
Definition at line 630 of file ApiBase.php.
References dieUsage().
Referenced by ApiMove\execute(), ApiDelete\execute(), ApiQueryCategoryMembers\run(), and ApiUpload\selectUploadModule().
When modules crash, sometimes it is needed to do a profileOut() regardless of the profiling state the module was in.
This method does such cleanup.
Definition at line 1473 of file ApiBase.php.
References profileDBOut(), and profileOut().
ApiBase::setWarning | ( | $ | warning | ) |
Set warning section for this module.
Users should monitor this section to notice any changes in API. Multiple calls to this function will result in the warning messages being separated by newlines
$warning | string Warning message |
Definition at line 201 of file ApiBase.php.
References $result, getModuleName(), getResult(), and ApiResult\setContent().
Referenced by ApiResult\addValue(), ApiFormatXml\addXslt(), ApiPurge\execute(), ApiQueryDisabled\execute(), ApiQueryUsers\execute(), ApiQueryRevisions\execute(), ApiPageSet\execute(), ApiQueryInfo\extractPageInfo(), ApiQueryRecentChanges\extractRowInfo(), ApiQueryRevisions\extractRowInfo(), getParameterFromSettings(), ApiQueryImageInfo\mergeThumbParams(), parseMultiValue(), ApiQueryImages\run(), ApiQueryCategories\run(), ApiQueryLinks\run(), and warnOrDie().
ApiBase::setWatch | ( | $ | watch, |
$ | titleObj, | ||
$ | userOption = null |
||
) | [protected] |
Set a watch (or unwatch) based the based on a watchlist parameter.
$watch | String Valid values: 'watch', 'unwatch', 'preferences', 'nochange' |
$titleObj | Title the article's title to change |
$userOption | String The user option to consider when $watch=preferences |
Definition at line 758 of file ApiBase.php.
References $user, WatchAction\doUnwatch(), WatchAction\doWatch(), ContextSource\getUser(), and getWatchlistValue().
Referenced by ApiProtect\execute(), ApiUndelete\execute(), ApiMove\execute(), ApiRollback\execute(), and ApiDelete\execute().
Indicates if this module needs maxlag to be checked.
Reimplemented in ApiQuery, and ApiHelp.
Definition at line 1307 of file ApiBase.php.
static ApiBase::truncateArray | ( | &$ | arr, |
$ | limit | ||
) | [static] |
Truncate an array to a certain length.
$arr | array Array to truncate |
$limit | int Maximum length |
Definition at line 1063 of file ApiBase.php.
References $limit.
ApiBase::validateLimit | ( | $ | paramName, |
&$ | value, | ||
$ | min, | ||
$ | max, | ||
$ | botMax = null , |
||
$ | enforceLimits = false |
||
) |
Validate the value against the minimum and user/bot maximum limits.
Prints usage info on failure.
$paramName | string Parameter name |
$value | int Parameter value |
$min | int|null Minimum value |
$max | int|null Maximum value for users |
$botMax | int Maximum value for sysops/bots |
$enforceLimits | Boolean Whether to enforce (die) if value is outside limits |
Definition at line 1000 of file ApiBase.php.
References encodeParamName(), getMain(), and warnOrDie().
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryRevisions\execute(), and getParameterFromSettings().
ApiBase::validateTimestamp | ( | $ | value, |
$ | paramName | ||
) |
$value | string |
$paramName | string |
Definition at line 1035 of file ApiBase.php.
References dieUsage(), and wfTimestamp().
Referenced by getParameterFromSettings().
ApiBase::warnOrDie | ( | $ | msg, |
$ | enforceLimits = false |
||
) | [private] |
Adds a warning to the output, else dies.
$msg | String Message to show as a warning, or error message if dying |
$enforceLimits | Boolean Whether this is an enforce (die) |
Definition at line 1049 of file ApiBase.php.
References dieUsage(), and setWarning().
Referenced by validateLimit().
ApiBase::$mDBTime = 0 |
Definition at line 1496 of file ApiBase.php.
ApiBase::$mDBTimeIn = 0 [private] |
Profiling: database execution time.
Definition at line 1496 of file ApiBase.php.
ApiBase::$messageMap [static] |
Array that maps message keys to error messages.
$1 and friends are replaced.
Definition at line 1091 of file ApiBase.php.
ApiBase::$mMainModule [private] |
Definition at line 62 of file ApiBase.php.
ApiBase::$mModuleName |
Definition at line 62 of file ApiBase.php.
ApiBase::$mModulePrefix |
Definition at line 62 of file ApiBase.php.
ApiBase::$mModuleTime = 0 |
Definition at line 1440 of file ApiBase.php.
ApiBase::$mParamCache = array() [private] |
Definition at line 63 of file ApiBase.php.
ApiBase::$mTimeIn = 0 [private] |
Profiling: total module execution time.
Definition at line 1440 of file ApiBase.php.
const ApiBase::LIMIT_BIG1 = 500 |
Definition at line 57 of file ApiBase.php.
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryRevisions\execute(), ApiQueryExternalLinks\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), and ApiQueryBacklinks\run().
const ApiBase::LIMIT_BIG2 = 5000 |
Definition at line 58 of file ApiBase.php.
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryRevisions\execute(), ApiQueryExternalLinks\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), and ApiQueryBacklinks\run().
const ApiBase::LIMIT_SML1 = 50 |
Definition at line 59 of file ApiBase.php.
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryRevisions\execute(), ApiQuerySearch\getAllowedParams(), ApiParamInfo\getClassInfo(), and parseMultiValue().
const ApiBase::LIMIT_SML2 = 500 |
Definition at line 60 of file ApiBase.php.
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryRevisions\execute(), ApiQuerySearch\getAllowedParams(), and ApiParamInfo\getClassInfo().
const ApiBase::PARAM_ALLOW_DUPLICATES = 6 |
Definition at line 52 of file ApiBase.php.
Referenced by ApiProtect\getAllowedParams(), ApiQueryAllmessages\getAllowedParams(), ApiParamInfo\getClassInfo(), and getParameterFromSettings().
const ApiBase::PARAM_DEPRECATED = 7 |
Definition at line 53 of file ApiBase.php.
Referenced by ApiQueryStashImageInfo\getAllowedParams(), ApiProtect\getAllowedParams(), ApiMove\getAllowedParams(), ApiDelete\getAllowedParams(), ApiEditPage\getAllowedParams(), ApiUpload\getAllowedParams(), ApiParamInfo\getClassInfo(), getParameterFromSettings(), and makeHelpMsgParameters().
const ApiBase::PARAM_DFLT = 0 |
Definition at line 46 of file ApiBase.php.
Referenced by ApiQueryStashImageInfo\getAllowedParams(), ApiExpandTemplates\getAllowedParams(), ApiRollback\getAllowedParams(), ApiOpenSearch\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiQueryExternalLinks\getAllowedParams(), ApiFileRevert\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiProtect\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiFeedContributions\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiMove\getAllowedParams(), ApiFeedWatchlist\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryUserInfo\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiDelete\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryAllmessages\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryUsers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiEditPage\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiParse\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiUpload\getAllowedParams(), ApiQuerySiteinfo\getAllowedParams(), ApiQueryInfo\getAllowedParams(), ApiMain\getAllowedParams(), ApiParamInfo\getClassInfo(), getParameterFromSettings(), and makeHelpMsgParameters().
const ApiBase::PARAM_ISMULTI = 1 |
Definition at line 47 of file ApiBase.php.
Referenced by ApiQueryStashImageInfo\getAllowedParams(), ApiOpenSearch\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiHelp\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiProtect\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiFeedContributions\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryUserInfo\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryAllmessages\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiParamInfo\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryUsers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiParse\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiQuerySiteinfo\getAllowedParams(), ApiQuery\getAllowedParams(), ApiQueryInfo\getAllowedParams(), ApiPageSet\getAllowedParams(), ApiParamInfo\getClassInfo(), and getParameterFromSettings().
const ApiBase::PARAM_MAX = 3 |
Definition at line 49 of file ApiBase.php.
Referenced by ApiOpenSearch\getAllowedParams(), ApiQueryExternalLinks\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiFeedWatchlist\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiParamInfo\getClassInfo(), and getParameterFromSettings().
const ApiBase::PARAM_MAX2 = 4 |
Definition at line 50 of file ApiBase.php.
Referenced by ApiOpenSearch\getAllowedParams(), ApiQueryExternalLinks\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiParamInfo\getClassInfo(), and getParameterFromSettings().
const ApiBase::PARAM_MIN = 5 |
Definition at line 51 of file ApiBase.php.
Referenced by ApiOpenSearch\getAllowedParams(), ApiQueryExternalLinks\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiFeedWatchlist\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiParamInfo\getClassInfo(), and getParameterFromSettings().
const ApiBase::PARAM_RANGE_ENFORCE = 9 |
Definition at line 55 of file ApiBase.php.
Referenced by getParameterFromSettings().
const ApiBase::PARAM_REQUIRED = 8 |
Definition at line 54 of file ApiBase.php.
Referenced by ApiPatrol\getAllowedParams(), ApiRollback\getAllowedParams(), ApiExpandTemplates\getAllowedParams(), ApiWatch\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiEmailUser\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiFileRevert\getAllowedParams(), ApiProtect\getAllowedParams(), ApiFeedContributions\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiBlock\getAllowedParams(), ApiMove\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiEditPage\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiParamInfo\getClassInfo(), getParameterFromSettings(), getPossibleErrors(), and makeHelpMsgParameters().
const ApiBase::PARAM_TYPE = 2 |
Definition at line 48 of file ApiBase.php.
Referenced by ApiPatrol\getAllowedParams(), ApiQueryStashImageInfo\getAllowedParams(), ApiExpandTemplates\getAllowedParams(), ApiRollback\getAllowedParams(), ApiWatch\getAllowedParams(), ApiComparePages\getAllowedParams(), ApiOpenSearch\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiEmailUser\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiImport\getAllowedParams(), ApiUnblock\getAllowedParams(), ApiQueryExternalLinks\getAllowedParams(), ApiFileRevert\getAllowedParams(), ApiQueryLangLinks\getAllowedParams(), ApiQueryDuplicateFiles\getAllowedParams(), ApiQueryWatchlistRaw\getAllowedParams(), ApiQueryIWLinks\getAllowedParams(), ApiQueryTags\getAllowedParams(), ApiProtect\getAllowedParams(), ApiQueryAllCategories\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiFeedContributions\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryImages\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiBlock\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiQueryIWBacklinks\getAllowedParams(), ApiQueryLangBacklinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiMove\getAllowedParams(), ApiFeedWatchlist\getAllowedParams(), ApiQueryAllimages\getAllowedParams(), ApiQueryUserInfo\getAllowedParams(), ApiQueryCategories\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiDelete\getAllowedParams(), ApiQueryAllpages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryAllmessages\getAllowedParams(), ApiQueryFilearchive\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiParamInfo\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryUsers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryWatchlist\getAllowedParams(), ApiQueryContributions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiEditPage\getAllowedParams(), ApiQueryBacklinks\getAllowedParams(), ApiQueryImageInfo\getAllowedParams(), ApiParse\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiUpload\getAllowedParams(), ApiQuerySiteinfo\getAllowedParams(), ApiQuery\getAllowedParams(), ApiQueryInfo\getAllowedParams(), ApiPageSet\getAllowedParams(), ApiMain\getAllowedParams(), ApiParamInfo\getClassInfo(), getParameterFromSettings(), and makeHelpMsgParameters().