Translations:Manual:RequestContext.php/9/en


 * When writing parser functions and hooks
 * Parser functions and hooks should not be accessing request context data. Other contextual information can be accessed from the local parser object.
 * For example:
 * Make use of the ParserOptions for anything you do need like the user lang.
 * Use the Linker:: class statically instead of accessing the Skin.
 * If you need to add something to the page output outside of the content area the ParserOutput should have methods that allow you to do what you want.
 * If the methods in ParserOutput aren't flexible enough for what you need to do it's possible to register a callback with the ParserOutput that will be called later in a place you can freely make use of the request context.