An IContextSource implementation which will inherit context from another source but allow individual ...
setContext(IContextSource $context)
Set the IContextSource object.
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