wiki.techinc.nl/includes/api
Hoo man d05ddf6e06 Make action=query&list=users use User::getRights()
Made action=query&list=users use User::getRights() if
usprop rights given. This not only removes redundant
code, but makes it execute the UserGetRights hook, so
that this now includes rights given by Extensions (eg.
CentralAuth does that).

Patch Set 2: Modified the User class to be able to
inject further data into User::newFromRow() and using
that to inject the groups taken out of one SQL query
(for performance reasons). Furthermore I've split up
the query in ApiQueryUsers.php into one for user data
and one for the groups, to only have one row for each
user.
After all the perfomance of this should now be ok, not
extremly good, but bearable (though I couldn't test it
deeply, as I don't have much data in my CentralAuth
environment).

Change-Id: Ie5b2924abb82ac254c77e1d04cc4d5b308962dad
2012-10-24 20:16:06 -07:00
..
ApiBase.php Swap isSpecialPage for canExist() 2012-10-23 23:56:35 +02:00
ApiBlock.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiComparePages.php Fixing creation of DifferenceEninge 2012-08-24 20:49:19 +02:00
ApiDelete.php Remove a bunch of trailing spaces and unneeded newlines 2012-10-10 20:14:40 +02:00
ApiDisabled.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiEditPage.php (bug 40930) Fix regression: ContentHandler prevents action=edit append to blank page 2012-10-15 15:45:39 +02:00
ApiEmailUser.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiExpandTemplates.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFeedContributions.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
ApiFeedWatchlist.php merging latest master 2012-08-20 16:55:28 +02:00
ApiFileRevert.php pass user object for delete/undelete/filerevert in api/gui 2012-10-06 11:54:50 +02:00
ApiFormatBase.php merge latest master. 2012-09-05 17:50:13 +02:00
ApiFormatDbg.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatDump.php
ApiFormatJson.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatNone.php miscellaneous doxygen warnings 2012-10-22 14:00:08 +02:00
ApiFormatPhp.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatRaw.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatTxt.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatWddx.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatXml.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatYaml.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiHelp.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiImport.php merging latest master 2012-08-20 16:55:28 +02:00
ApiLogin.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiLogout.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiMain.php Remove a bunch of trailing spaces and unneeded newlines 2012-10-10 20:14:40 +02:00
ApiMove.php add moveoverredirect to result of api move 2012-08-31 16:15:13 +02:00
ApiOpenSearch.php (bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest 2012-10-02 04:51:51 +02:00
ApiOptions.php merging latest master 2012-08-20 16:55:28 +02:00
ApiPageSet.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiParamInfo.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiParse.php Swap isSpecialPage for canExist() 2012-10-23 23:56:35 +02:00
ApiPatrol.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiProtect.php Add hint for pipe-separated list to action=help 2012-07-29 10:48:52 +02:00
ApiPurge.php Cleanup of Wikidata branch. 2012-10-08 17:34:47 +02:00
ApiQuery.php (bug 39665) optimize API query generator list 2012-10-12 20:24:15 +00:00
ApiQueryAllCategories.php Remove a bunch of trailing spaces and unneeded newlines 2012-10-10 20:14:40 +02:00
ApiQueryAllImages.php Merge "prop=imageinfo&iiprop=url|thumbmime needs iiurlwidth=" 2012-07-18 01:42:33 +00:00
ApiQueryAllLinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryAllMessages.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryAllPages.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryAllUsers.php merge latest master. 2012-09-05 17:50:13 +02:00
ApiQueryBacklinks.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryBase.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryBlocks.php merging latest master 2012-08-20 16:55:28 +02:00
ApiQueryCategories.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryCategoryInfo.php merging latest master 2012-08-20 16:55:28 +02:00
ApiQueryCategoryMembers.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryDeletedrevs.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryDisabled.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryDuplicateFiles.php merged master 2012-08-29 15:20:15 +02:00
ApiQueryExternalLinks.php Add 'expandurl' to prop=extlinks/list=exturlusage 2012-10-04 02:04:11 +00:00
ApiQueryExtLinksUsage.php Add 'expandurl' to prop=extlinks/list=exturlusage 2012-10-04 02:04:11 +00:00
ApiQueryFilearchive.php Add separate fa_sha1 field to filearchive table 2012-10-14 20:58:25 +02:00
ApiQueryImageInfo.php Bug 41234 - api prop=imageinfo broken on PHP 5.4 2012-10-20 03:23:27 +01:00
ApiQueryImages.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryInfo.php Add User to Title::userCan calls in api 2012-09-22 13:33:33 +02:00
ApiQueryIWBacklinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryIWLinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryLangBacklinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryLangLinks.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryLinks.php merging latest master 2012-08-20 16:55:28 +02:00
ApiQueryLogEvents.php Apparently setIndexedTagName_recursive() wasn't enough here 2012-09-12 12:57:04 -07:00
ApiQueryORM.php Removed reference to * from docs. 2012-10-22 16:39:07 -07:00
ApiQueryPageProps.php
ApiQueryProtectedTitles.php merged master 2012-08-29 15:20:15 +02:00
ApiQueryQueryPage.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryRandom.php Added result properties to action=paraminfo 2012-06-06 19:24:59 +02:00
ApiQueryRecentChanges.php (bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title 2012-09-29 17:19:40 +02:00
ApiQueryRevisions.php fix bug 41122, provide missing revId param in ApiQueryRevisions 2012-10-18 23:33:34 +02:00
ApiQuerySearch.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQuerySiteinfo.php (bug 30836) API siteinfo specialpagealiases should not return nonexistent special pages 2012-07-18 23:09:13 -04:00
ApiQueryStashImageInfo.php prop=imageinfo&iiprop=url|thumbmime needs iiurlwidth= 2012-07-13 17:25:22 +02:00
ApiQueryTags.php merging latest master 2012-08-20 16:55:28 +02:00
ApiQueryUserContributions.php Merge "Updated result properties in paraminfo API" 2012-07-21 09:09:02 +00:00
ApiQueryUserInfo.php merge latest master. 2012-09-05 17:50:13 +02:00
ApiQueryUsers.php Make action=query&list=users use User::getRights() 2012-10-24 20:16:06 -07:00
ApiQueryWatchlist.php merging latest master 2012-08-20 16:55:28 +02:00
ApiQueryWatchlistRaw.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiResult.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiRollback.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiRsd.php
ApiSetNotificationTimestamp.php merged master 2012-08-29 15:20:15 +02:00
ApiTokens.php Added result properties to action=paraminfo 2012-06-06 19:24:59 +02:00
ApiUnblock.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiUndelete.php pass user object for delete/undelete/filerevert in api/gui 2012-10-06 11:54:50 +02:00
ApiUpload.php Avoid fatals for bad filenames given for chunk uploads. 2012-10-10 16:15:29 -07:00
ApiUserrights.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiWatch.php Merge "Revert "AJAXify watchlist editor"" 2012-08-01 03:19:28 +00:00