The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
getOutput()
Get the OutputPage object.
setContext(IContextSource $context)
Set the IContextSource object.
Interface for objects which can provide a MediaWiki context on request.