Commit graph

31 commits

Author SHA1 Message Date
Alexandre Emsenhuber
457eb73b61 Standardised file description headers, added @file 2010-08-07 19:59:42 +00:00
Sam Reed
e2ec02531d Reduce unnecessary seperate nested if's, move them up to the top if (as per most of the others where this is necessary!) 2010-08-06 11:20:39 +00:00
Sam Reed
83411cd0fa Followup r70460 per Umherirrender comment
Add "required" to ApiParamInfo
2010-08-06 11:18:39 +00:00
Derk-Jan Hartman
921619b119 Correct the address of the FSF in some of the GPL headers
59 Temple Place -> 51 Franklin Street
2010-06-21 13:13:32 +00:00
Sam Reed
0a17a0360a Append " and errors" to getDescription for ApiParamInfo to signify that information about the errors a module can return is there 2010-04-24 11:58:52 +00:00
Jack Phoenix
c286869e38 API: fix copyright symbol, coding style cleanup, more braces 2010-02-23 18:05:46 +00:00
Sam Reed
3fcc9a8bcd Fix r62331 - If we renamed a method, we need to to it everywhere! 2010-02-11 22:22:20 +00:00
Sam Reed
aa973b9eb7 More of bug 18771 - List possible errors in action=paraminfo
Followup to comments of r62282
2010-02-11 21:34:35 +00:00
Sam Reed
ee60482546 Start implementation of bug 18771 - List possible errors in action=paraminfo
Base has empty array() returning method, ApiBlock has implementation of possibleErrors from code above (possibly not complete)

Can be finished incrementally, so serves as a review point for Roan
2010-02-11 01:13:45 +00:00
Sam Reed
b739e97341 More of r61437 (adding/removing whitespace) 2010-01-23 22:47:49 +00:00
Aryeh Gregor
3758769f0d stylize.php on API code
"I wouldn't object to stylizing the API code to bring it in line with
the rest of MW on principle, but I'm not gonna bother myself." --Roan
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60657#c5108>

If you're seeing this commit in blames, tell your blame tool to ignore
whitespace, e.g., git blame -w or svn blame -x -w.
2010-01-11 15:55:52 +00:00
Chad Horohoe
3cdae769b7 Only use one if, not 2 2010-01-05 10:50:07 +00:00
Chad Horohoe
c660ee428f (bug 21106) tag deprecated parameter in action=paraminfo. Add new PARAM_DEPRECATED const for automagically tagging deprecated parameters. Keeps action=help and action=paraminfo up to date 2009-10-28 00:56:07 +00:00
Roan Kattouw
d76bdf62be API: (bug 18749) Add generator flag to action=paraminfo output. Also fixes an internal error in r50367 2009-05-10 09:52:31 +00:00
Roan Kattouw
560365d615 API: (bug 18730) Add version information to action=paraminfo output 2009-05-09 13:00:59 +00:00
Roan Kattouw
5daf0db847 API: (bug 18709) Missing descriptions for some parameters in action=paraminfo output 2009-05-08 17:24:49 +00:00
Chad Horohoe
49bfc91366 (bug 18710) Fixed internal error with empty parameter in ApiParamInfo 2009-05-07 20:09:45 +00:00
Roan Kattouw
21fd7af97e * API: (bug 17774) API pretends action=query doesn't exist for users without read rights
* Instead of hiding read-restricted modules, throw an error when a user without read rights tries to use them
* Do the same for write modules when $wgEnableWriteAPI is false
* Indicate whether a module needs read or write rights in action=help and action=paraminfo
* BREAKING CHANGE: action=purge now requires write rights and, for anonymous users, a POST request
2009-03-06 13:49:44 +00:00
Roan Kattouw
e0542e1cf9 API: Make information about the main module (ApiMain) and the pageset module (ApiPageSet) available through action=paraminfo 2009-02-14 14:56:20 +00:00
Roan Kattouw
0828169b6b API: Add allowsduplicates attribute to action=paraminfo output 2008-10-04 15:03:03 +00:00
Roan Kattouw
76635483de (bug 15359) Add APIGetAllowedParams and APIGetParamDescription hooks 2008-09-07 19:04:51 +00:00
Roan Kattouw
5331e82bd5 API:
* (bug 15048) Added limit field for multivalue parameters to action=paraminfo output.
* When the limit on multivalue parameters is exceeded, a warning is issued
2008-08-05 16:32:28 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Alexandre Emsenhuber
4f60e33303 setting property svn:keywords Id to api files that don't have it, for use in getVersion() 2008-03-03 19:34:11 +00:00
Roan Kattouw
19358606a1 API: Changing all modules' getParamDescription(), getAllowedParams() and getDescription() methods to public. ApiParamInfo needs them, and some versions of PHP threw fatal errors because they were protected. Oddly, other versions didn't (maybe because the caller and the callee have a common ancestor?) 2008-01-28 19:05:26 +00:00
Roan Kattouw
455eefb6fa Change action=paraminfo's format to something that won't render invalid XML 2008-01-25 12:28:18 +00:00
Roan Kattouw
8a0e46d97c API:
* Fixing buggy class instantiation in ApiParamInfo
* Adding getModules() method to ApiMain and ApiQuery
2008-01-23 18:40:40 +00:00
Roan Kattouw
c4e5236096 API: Adding module prefix information to action=paraminfo 2008-01-23 17:28:45 +00:00
Roan Kattouw
702ff66de4 API: Adding parameter description to action=paraminfo output 2008-01-23 16:59:37 +00:00
Roan Kattouw
abaf9995ba (bug 12718) Added action=paraminfo module that provides information about API modules and their parameters 2008-01-22 21:22:04 +00:00