getContext()
Get the base IContextSource object.
msg( $key)
Get a Message object with context set Parameters are the same as wfMessage()
canUseWikiPage()
Check whether a WikiPage object can be get with getWikiPage().
getRequest()
Get the WebRequest object.
getOutput()
Get the OutputPage object.
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
setContext(IContextSource $context)
Set the IContextSource object.
Interface for objects which can provide a MediaWiki context on request.
exportSession()
Export the resolved user IP, HTTP headers, user ID, and session ID.
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