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
Rotem Liss
9d02a8c560
Quick solution for problems with limit=max when using slow queries: allowing modules to delay the parsing of limit=max until they get the actual maximum values, and making them parse it by themselves.
2008-01-05 10:05:34 +00:00
Roan Kattouw
5d8f2177c5
API:
...
* Add list=allcategories module
* Fix token-related E_NOTICEs
2007-12-10 15:55:12 +00:00
Victor Vasiliev
0495f90ebb
Revert r28215: incorrectly moved files
2007-12-06 18:33:18 +00:00
Victor Vasiliev
4e4cdf079e
Create includes/api/query for Query API and includes/api/edit for Edit API
2007-12-06 18:22:15 +00:00
Daniel Cannon
7282f1a341
API: Standardize limits. Use ApiBase constants to avoid similar breakage and inconsistencies in the future.
2007-12-05 06:32:17 +00:00
Roan Kattouw
09149d5082
Reverting prop=revisions diff generation: way too expensive and DoS-vulnerable
2007-12-02 00:22:32 +00:00
Roan Kattouw
7e6bcd9e5a
Revert r28030: the example is valid. The fact that it doesn't work on Wikipedia is a bug that has been fixed on trunk already.
2007-12-01 17:53:42 +00:00
Victor Vasiliev
28107fc284
Remove invalid example from ApiQueryRevisions
2007-12-01 17:48:49 +00:00
Roan Kattouw
690accbd08
Making this actually work. I feel so stupid.
2007-12-01 15:13:29 +00:00
Roan Kattouw
2b107e7ece
API:
...
* Adding rollback tokens to prop=revisions
* Fixing bug that broke prop=revisions multipage mode
* Adding some comments on diff formatters
2007-12-01 15:08:57 +00:00
Victor Vasiliev
c1e259c8d7
* Fix rvdiffformat=array
...
* Fix notice about undefined index in ArrayDiffFormatter
2007-12-01 09:08:02 +00:00
Roan Kattouw
537f7ea5b3
API:
...
* Adding rvdiffformat parameter to prop=revisions
* Creating formatters for unified (UnifiedDiffFormatter) and array (ArrayDiffFormatter) diffs
2007-11-27 21:36:43 +00:00
Daniel Cannon
1fac7474e4
API: Another diff problem, var name mix-up.
2007-11-27 20:43:29 +00:00
Daniel Cannon
05fec7e664
API: difftoprev fails when 'rvprop=ids' is not specified. Sort of gross way to fix the problem, but it works.
2007-11-27 20:37:26 +00:00
Roan Kattouw
7544b1c497
API: Adding diff generation to prop=revisions.
...
This implementation outputs normal diff output (with < and >) rather than unified, and always uses native PHP diff (i.e. ignores $wgExternalDiffEngine). An implementation that honors $wgExternalDiffEngine and outputs a unified diff will follow later.
2007-11-27 16:41:13 +00:00
Daniel Cannon
1af0a9f076
API: Ensure it checks *only* the fast limit or the slow limit, not both. On fast revision queries (those without content), was checking once against fast limit and once against slow limit, and exploding if limit exceeded slow limit.
2007-10-05 07:37:58 +00:00
Roan Kattouw
c41d9ddc9f
(bug 11534) rvendid doesn't work
2007-10-02 15:30:39 +00:00
Roan Kattouw
50e029c17e
API: (bug 11405) Expand templates implementation in the API
...
Modified patch by Bryan Tongh Minh
2007-09-25 18:36:25 +00:00
Tim Starling
1c708580e2
Fixed typo, fld_len -> fld_size
2007-09-02 14:00:11 +00:00
Yuri Astrakhan
093acd200a
API: Added size property (rev_len)
2007-08-09 06:38:48 +00:00
Yuri Astrakhan
ce91d949f7
API:
...
* Added full text search in titles and content (list=search)
* (bug 10684) Expanded list=allusers functionality
* Possible breaking change: prop=revisions no longer includes pageid for rvprop=ids
* Bug fix: proper search escaping for SQL LIKE queries.
2007-07-30 08:09:15 +00:00
Yuri Astrakhan
8ca133afff
API: Big change: Removed all userCanRead() checks per IRC discussion. Only rvprop=content will now check that the page can be read.
2007-07-14 19:04:31 +00:00
Yuri Astrakhan
f0a72f20de
API: Reverted back to r23531 for the reasons listed in bug 10297
2007-07-01 06:45:14 +00:00
Roan Kattouw
23040d88f3
Removing a ')' that broke the entire API
2007-06-30 09:31:51 +00:00
Roan Kattouw
eddedab1f4
Adding rvprop=lastid parameter to prop=revisions that lists revid of
...
previous revision (bug 10297)
2007-06-30 09:23:05 +00:00
Aryeh Gregor
a15c419b3d
Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
2007-06-29 01:19:14 +00:00
Yuri Astrakhan
583ac87532
API: Fixed error codes encoding per bug 10308.
2007-06-25 05:44:33 +00:00
Yuri Astrakhan
1152253310
API: Enabled API login throttling (with amidaniel's help)
...
fixed memcached-client comments
minor queryRevisions fix
2007-05-27 23:50:24 +00:00
Brion Vibber
e9dedd4886
bug 8772: fix for previous patch -- function that takes one parameters was passed two.
2007-05-23 18:32:49 +00:00
Yuri Astrakhan
b4de075600
API:
...
revisions - removed oldid (not used except in content retrieval), added extra prop options to optimize bandwidth, continue value is now an integer in JSON
minor help screen improvement.
2007-05-21 06:32:32 +00:00
Yuri Astrakhan
6f6d1f2776
API: recentchanges and usercontribs cleaned up to allow more precise properties selection. Minor security updates.
2007-05-21 04:34:48 +00:00
Yuri Astrakhan
cb38c11c84
API: documentation and cleanup.
2007-05-20 23:31:44 +00:00
Yuri Astrakhan
beb5c4c026
API:
...
* query=images - error when no valid pages
* log - added proper showing of the patrol events
* revisions - code cleanup
2007-05-20 08:34:47 +00:00
Yuri Astrakhan
aab4c9d205
API:
...
* breaking change: Converted a map of revisions into a list of revisions to allow easier json processing (no need to know map keys)
* html formatting now properly links urls ending with a '\n' string (jsonfm)
* regression: fixed allpages to return int instead of string for pageid and ns
* Added: info now returns page length, counter, and a new flag
2007-05-19 20:26:08 +00:00
Yuri Astrakhan
fea6038271
* API: Watchlist feed allows 'hours' parameter of how many hours to go back
2007-05-19 18:08:36 +00:00
Yuri Astrakhan
15419ad729
API: resolved bug 8772: Parameter to limit results to revisions made by a particular user, when querying revisions for a page
...
(patch by Carl Fürstenberg)
2007-05-19 04:13:48 +00:00
Yuri Astrakhan
77cc38c788
API: fixed bug 9938: Querying by revids on api.php returns the most recent revision for page of revid rather than requested revid
2007-05-19 01:46:13 +00:00
Nick Jenkins
f9619da3f0
Yet more doc tweaks:
...
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00
Nick Jenkins
f88c771756
The war on redundant ampersand usage!
...
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"
For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.
Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Brion Vibber
727d8fe585
* Fix API revision list on PHP 5.2.1; bad reference assignment
2007-01-18 02:01:47 +00:00
Yuri Astrakhan
ed43f714f4
API * better self-description for various modules
...
* namespace type for parameters
* fixed bug with incorrect ordering in paging
* fixed bug with revisions and watchlist paging
2006-11-03 06:53:47 +00:00
Yuri Astrakhan
751f69aa94
API * Implemented backlinks / imagelinks / embeddedin modules
...
* Revised help screen
2006-10-30 00:18:05 +00:00
Yuri Astrakhan
3ec1b5b646
API * simple backlinks module (no redirect resolution yet)
...
* Cleaned up references
2006-10-25 03:54:56 +00:00
Yuri Astrakhan
88e42b579b
API * Common field output function to simplify result generation
...
* Recent changes parameters
2006-10-21 08:26:32 +00:00
Yuri Astrakhan
398160f15e
API *
...
* OpenSearch support for namespaces
* Minor watchlist feed cleanup
2006-10-18 23:49:09 +00:00
Yuri Astrakhan
e65974bc4f
API * Optimized revision <rev> tag setting
2006-10-18 05:35:24 +00:00
Yuri Astrakhan
550c083a18
API
...
* Removed slow result SanitizeData
* Fixed watchlist feed bug (reported by nickj)
* Fixed HTML formatting bug (reported & fixed by nickj)
* clarified HTML intro message
2006-10-18 05:27:43 +00:00
Yuri Astrakhan
f928f9a6cd
API * Better log events info * Added RAW debugging format
2006-10-17 02:01:20 +00:00
Yuri Astrakhan
262435b9f8
* API: help screen now shows default and allowed parameter values
...
* API: added experimental watchlist rss/atom feed
* API: if available, json_encode() will be used
* API: opensearch parameter changed to "search=" (more descriptive)
* API: minor parameter cleanup, a wrapper for Feed class
2006-10-16 00:08:03 +00:00