An IContextSource implementation which will inherit context from another source but allow individual ...
static getMain()
Get the RequestContext object associated with the main request.
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class