74 if (
$data !==
null ) {
75 foreach (
$data as $k => $v ) {
76 if ( substr( $k, 0, 1 ) ===
'_' ) {
77 throw new InvalidArgumentException(
'Keys in $data beginning with "_" are reserved' );
82 if ( $comment instanceof
Message ) {
85 ->setInterfaceMessageFlag(
true )
The Message class provides methods which fulfil two basic services:
inLanguage( $lang)
Request the message in any language that is supported.
Variant of the Message class.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the local content language as $wgContLang