wiki.techinc.nl/includes/api
Brad Jorsch a90cbb48f8 Cast various things that are supposed to be ints
Mysqli is returning SELECTed ints as strings rather than as ints, I'm
guessing to avoid problems with 64-bit int types on 32-bit systems. PHP
mostly doesn't care, but it causes API JSON output to have strings
instead of ints all over the place.

This also fixes ForeignAPIFile::getUser( 'id' ) returning the user
*name*.

Bug: T98276
Change-Id: Ie6591d72b3ac40172f8176a8ca8b6fad8e9275a5
2015-05-06 11:40:41 -04:00
..
i18n Localisation updates from https://translatewiki.net. 2015-05-05 22:06:14 +02:00
ApiBase.php API: Add wfDeprecated() to deprecated ApiResult methods 2015-04-20 16:20:24 -04:00
ApiBlock.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiCheckToken.php API: Add authz features for RESTBase 2015-02-19 16:45:03 -05:00
ApiClearHasMsg.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiComparePages.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiContinuationManager.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiCreateAccount.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiDelete.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiDisabled.php API: Internationalize all remaining core API modules 2014-10-20 16:56:35 -04:00
ApiEditPage.php ApiEditPage: Fetch content model from article, not title 2015-04-23 10:23:41 -04:00
ApiEmailUser.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiErrorFormatter.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiExpandTemplates.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiFeedContributions.php Introduce ApiFeedContributions::feedItem hook 2015-01-23 10:11:22 -08:00
ApiFeedRecentChanges.php API: Fix parameter interpretation in ApiFeedRecentChanges 2015-04-25 07:23:51 -04:00
ApiFeedWatchlist.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFileRevert.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatBase.php API: Better handle UsageException from the printer itself 2015-04-21 10:03:50 -04:00
ApiFormatDbg.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatDump.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatFeedWrapper.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatJson.php ApiFormatJson: Fix dieUsage call on unknown formatversion value 2015-04-20 14:57:45 +00:00
ApiFormatNone.php API: Clean up and internationalize pretty-printed output 2014-10-13 16:17:37 -07:00
ApiFormatPhp.php ApiFormatPhp: Fix dieUsage call on unknown formatversion value 2015-04-20 08:04:01 -07:00
ApiFormatRaw.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatTxt.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatWddx.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiFormatXml.php API: Also mangle indexed tag names in format=xml 2015-04-30 09:02:17 -04:00
ApiFormatYaml.php API: Clean up and internationalize pretty-printed output 2014-10-13 16:17:37 -07:00
ApiHelp.php API: Document parameter types 2015-04-16 23:29:00 +00:00
ApiHelpParamValueMessage.php API: Allow for documenting individual values of 'prop' parameters 2014-12-22 16:46:44 -05:00
ApiImageRotate.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiImport.php Make import destination UI more intuitive and clearer 2015-04-22 18:46:40 +00:00
ApiLogin.php New convenience method ApiBase::lacksSameOriginSecurity() 2015-02-27 09:48:37 -05:00
ApiLogout.php Replace wfRunHooks calls with direct Hooks::run calls 2014-12-10 12:26:59 -08:00
ApiMain.php API: Better handle UsageException from the printer itself 2015-04-21 10:03:50 -04:00
ApiManageTags.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiMessage.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiModuleManager.php Add ApiModuleManager::getClassName() 2014-09-08 02:06:33 -07:00
ApiMove.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiOpenSearch.php Restore B/C for ApiOpenSearch json output if warnings are present 2015-04-30 02:39:55 +02:00
ApiOptions.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiPageSet.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiParamInfo.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiParse.php ApiParse: Restore 'redirects' property in output 2015-05-01 15:50:25 -04:00
ApiPatrol.php Fix case of various newFromID/newFromId functions 2014-12-10 19:40:27 +00:00
ApiProtect.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiPurge.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQuery.php API: Remove metadata keys from indexpageids output 2015-04-23 09:17:56 -04:00
ApiQueryAllCategories.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryAllDeletedRevisions.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryAllImages.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryAllLinks.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryAllMessages.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryAllPages.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryAllUsers.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryBacklinks.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryBacklinksprop.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryBase.php Merge "API: Overhaul ApiResult, make format=xml not throw, and add json formatversion" 2015-04-16 01:05:51 +00:00
ApiQueryBlocks.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryCategories.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryCategoryInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryCategoryMembers.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryContributors.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryDeletedRevisions.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryDeletedrevs.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryDisabled.php API: Internationalize all remaining core API modules 2014-10-20 16:56:35 -04:00
ApiQueryDuplicateFiles.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryExternalLinks.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryExtLinksUsage.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryFilearchive.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryFileRepoInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryImageInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryImages.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryIWBacklinks.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryIWLinks.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryLangBacklinks.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryLangLinks.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryLinks.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryLogEvents.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryORM.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryPagePropNames.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryPageProps.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryPagesWithProp.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryPrefixSearch.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryProtectedTitles.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryQueryPage.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryRandom.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiQueryRecentChanges.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryRevisions.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryRevisionsBase.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQuerySearch.php Make api nearmatch search work same as 'go' feature 2015-05-05 16:31:17 -04:00
ApiQuerySiteinfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryStashImageInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryTags.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiQueryTokens.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryUserContributions.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryUserInfo.php Update getHelpUrls() for reworked mw.org API pages 2015-05-04 08:15:54 +00:00
ApiQueryUsers.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryWatchlist.php Cast various things that are supposed to be ints 2015-05-06 11:40:41 -04:00
ApiQueryWatchlistRaw.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiResult.php API: ApiResult must validate even when using numeric auto-indexes 2015-04-29 10:43:45 -04:00
ApiRevisionDelete.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiRollback.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiRsd.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiSerializable.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiSetNotificationTimestamp.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiStashEdit.php Split out internal parseAndStash from the edit stashing API 2015-03-27 22:16:59 +00:00
ApiTag.php API: Update ApiTag, fix error handling 2015-04-16 10:40:59 -04:00
ApiTokens.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00
ApiUnblock.php API: Fix access on getExamplesMessages 2014-10-29 11:15:27 -04:00
ApiUndelete.php Replace wfRunHooks calls with direct Hooks::run calls 2014-12-10 12:26:59 -08:00
ApiUpload.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiUserrights.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiWatch.php Change API result data structure to be cleaner in new formats 2015-04-20 17:49:37 -04:00