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
1b691f504b
(bug 12816) Adding list=random module which fetches a list of random pages. Based on a patch by Brent G.
2008-01-28 13:56:20 +00:00
Roan Kattouw
a81bd8ad8f
API: Splitting of uiuser part of meta=userinfo to list=users, as discussed on the API list.
2008-01-27 20:28:36 +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
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
Roan Kattouw
730bad3fb1
APIEDIT BRANCH MERGE: Adding apiedit modules: action={block,changerights,delete,move,protect,rollback,unblock,undelete} and list={blocks,deletedrevs}. $wgEnableWriteAPI must be explicitly set to enable these modules.
2007-12-02 14:24:07 +00:00
Victor Vasiliev
3cc53e8ff2
API: add meta=allmessages
2007-12-01 17:04:13 +00:00
Roan Kattouw
4895ce631f
Revert part of Brion's 27627: please don't throw away the child (maxlag) with the bathwater (format=raw)
2007-11-19 15:57:58 +00:00
Brion Vibber
b61adceeb9
Revert r27581, 27598, 27626
...
format=raw is an HTML injection machine like action=raw but without any safeguards; it's trivial to create JavaScript exploits which hit at least Internet Explorer.
There's no reason to add a whole new danger point here when you've got machine-readable structure already... please do not add this raw formatter back.
2007-11-19 15:32:06 +00:00
Victor Vasiliev
d7908b82e0
* Use ApiBase::dieDebug() to render maxlag error properly
...
* Allow modules to ignore maxlag attribute
2007-11-19 15:08:18 +00:00
Yuri Astrakhan
c4aad95b10
API: Added meta=userinfo module to get data about the currently logged-in user.
2007-07-31 17:53:37 +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
70970c90b2
API: Added list=allusers to allow enumeration of the registered users
2007-07-08 07:50:56 +00:00
Yuri Astrakhan
9afb42f99c
API:
...
* added link enumeration (list=alllinks)
* marked potential security vulnerability
2007-07-08 03:35:37 +00:00
Yuri Astrakhan
c3fb81f2f8
API: Added list=exturlusage - allows url searches within wiki
2007-07-07 09:35:05 +00:00
Yuri Astrakhan
f5aa2e8018
API: implemented prop=imageinfo, minor cleanup
2007-07-07 03:05:09 +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
6f82fb146b
API: Added categorymembers list ability.
2007-06-16 00:39:01 +00:00
Yuri Astrakhan
15ae5ecbf4
API: fixed bug 10147 Silent normalization of interwiki titles
2007-06-14 03:14:44 +00:00
Yuri Astrakhan
d4b754c48b
API: help message fix - bug 10148 generator and/or help page errors
2007-06-06 04:41:35 +00:00
Yuri Astrakhan
7ca6bd761c
API fixed bug 10112 generator=backlinks&prop=info broken
2007-06-03 17:22:09 +00:00
Yuri Astrakhan
2c343c99fc
API: fixed broken redirects feature
2007-05-28 08:06:40 +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
a048101d76
API: added query parameter indexpageids to list the page ids of all returned page items (bug 9121)
2007-05-21 05:25:36 +00:00
Yuri Astrakhan
cb38c11c84
API: documentation and cleanup.
2007-05-20 23:31:44 +00:00
Yuri Astrakhan
3a5ae24924
* API: Allow for query extensions
...
* API: User contrib query now uses 'contributions' db group
2007-05-15 03:35:32 +00:00
Yuri Astrakhan
adf1fb1b31
* API: fixed watchlist db selection ('watchlist' db group)
2007-05-15 02:16:48 +00:00
Yuri Astrakhan
bf246be8c6
* API: added property for external links (urls) retrieval
2007-05-14 07:04:13 +00:00
Yuri Astrakhan
b10c524d73
* API: added categories property
2007-05-14 06:21:49 +00:00
Yuri Astrakhan
0e68016b72
* New properties: links, templates, images, langlinks
...
* Breaking Change: imagelinks renamed into imageusage (il->iu)
* Bug fix: incorrect generator behavior in some cases
2007-05-14 05:28:06 +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
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
Andrew Garrett
9f1eee86c1
Implement usercontribs module for API.
2006-11-01 12:06:29 +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
10390af521
API * Added rudimentary RC list
...
* More readable query formulation
2006-10-20 07:10:18 +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
d7a95b125c
* API: logevents query module (incomplete)
2006-10-16 07:19:20 +00:00
Yuri Astrakhan
f229bdc8be
* API: added watchlist module (incomplete)
...
* API: minor param cleanup
2006-10-13 06:13:13 +00:00
Yuri Astrakhan
6531835ec1
* API: Added revids parameter.
2006-10-13 04:59:14 +00:00
Yuri Astrakhan
25234bd1fc
* allpages module fix
...
* added exception handling code
2006-10-12 03:15:42 +00:00
Yuri Astrakhan
eb16ab605c
* API: Optimized PageSet object to avoid executing queries against page table twice.
2006-10-06 01:02:14 +00:00
Yuri Astrakhan
31775400d8
*API: rewired generator (more work needed)
...
*API: structure cleanup: module names & parameters
2006-10-03 05:41:55 +00:00
Yuri Astrakhan
4ade08ef76
* API: implemented generator function
...
* API: enabled allpages to function as a generator
2006-10-02 23:56:19 +00:00
Yuri Astrakhan
c01eb06e5e
*API: better version gen, added check for read-only api, added allpages params description
2006-10-02 18:27:06 +00:00
Yuri Astrakhan
04399b2063
* API: added version information to each module (available via api.php?version command)
2006-10-01 21:20:55 +00:00
Yuri Astrakhan
e859600cea
* API: pageSet now supports pageids, revised revisions listings, lots of examples.
2006-10-01 20:17:16 +00:00
Yuri Astrakhan
85de1cb74b
* Code cleanup per TimStarling's suggestions
2006-10-01 04:38:31 +00:00
Yuri Astrakhan
f97b323e00
* API: result data generation cleanup, minor cleaning
2006-10-01 02:02:13 +00:00
Yuri Astrakhan
8deda5c25a
* API: revisions & pageset cleanup
2006-09-30 08:06:27 +00:00
Yuri Astrakhan
94517aac14
* API: revisions module fixes
2006-09-29 07:29:13 +00:00
Yuri Astrakhan
5c1ca0fc83
* API: Refactored per brion's suggestions
...
* API: began query revisions implementation (incomplete)
2006-09-27 05:13:48 +00:00
Yuri Astrakhan
8a7397e8ad
* API: Overall query-related cleanup.
2006-09-26 06:37:26 +00:00
Yuri Astrakhan
972b72f879
* API: All pages list
...
* API: Reworked parameter processing
2006-09-26 05:43:02 +00:00
Yuri Astrakhan
e57335a633
* API: Query Meta SiteInfo module
...
* API: Improved query help screen
2006-09-26 01:44:13 +00:00
Yuri Astrakhan
fd68ee851a
* API: General query modules order of execution
...
* API: Moved title parsing logic to ApiPageSet
2006-09-25 06:10:16 +00:00
Yuri Astrakhan
fc6ec50f94
* API: A new ApiPageSet class to retrieve page data and resolve redirects.
2006-09-25 04:12:07 +00:00
Yuri Astrakhan
fcfcf6fdf9
* API-query: normalization
...
* API: help screen improvements
2006-09-23 23:30:25 +00:00
Yuri Astrakhan
1fc6e9cc86
* API: major refactoring
...
* API: added login functionality
* API: added several output formats (needs optimization)
2006-09-23 15:57:16 +00:00
Yuri Astrakhan
e7ad7f3d41
* Non-working API to facilitate dev collaboration. Do not enable this yet in localsettings.php.
2006-09-08 14:27:58 +00:00