Jim R. Wilson schreef:
Jay said:
So the obvious followup question is: is there a plan to migrate the front end to *use the API* to talk to the backend (which is the preferred approach to such things anyway)?
There are times when utilizing the API programatically could make extension development much easier. The last time I looked at the API certain things were hard coded (such as bot limits - yuck) which made it tough/impossible to use in certain extension scenarios. I believe these have been corrected though, so it's probably a good resource for certain classes of extensions.
Someone familiar with the core could always construct a proper $dbr->select() querys, but it would be easier (read: less code) in some cases to let the API classes handle it.
Calling the API from within MW (or extensions) can be done using the FauxRequest class. This also makes the API ignore the maximum limit, so you can set limit parameters to whatever you like (not to infinity, however). This feature is documented at [1].
Roan Kattouw (Catrope)