Go to the documentation of this file.
27 $parser =
new Parser( $wgParserConf );
31 $this->assertEquals(
"<p>FooOneBaz\n</p>", $parserOutput->getText() );
43 $parser =
new Parser( $wgParserConf );
47 $this->
fail(
'Exception not thrown.' );
56 $parser =
new Parser( $wgParserConf );
58 $parser->setFunctionTagHook( $tag,
array( $this,
'functionTagCallback' ), 0 );
60 $this->assertEquals(
"<p>FooOneBaz\n</p>", $parserOutput->getText() );
72 $parser =
new Parser( $wgParserConf );
76 $this->
fail(
'Exception not thrown.' );
80 return str_rot13( $text );
84 return str_rot13( $code );
testBadFunctionTagHooks( $tag)
@dataProvider provideBadNames @expectedException MWException @covers Parser::setFunctionTagHook
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
as a message key or array as accepted by ApiBase::dieUsageMsg after processing request parameters Return false to let the request fail
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 content language as $wgContLang
testBadTagHooks( $tag)
@dataProvider provideBadNames @expectedException MWException @covers Parser::setHook
static provideValidNames()
static newFromUserAndLang(User $user, Language $lang)
Get a ParserOptions object from a given user and language.
testTagHooks( $tag)
@dataProvider provideValidNames @covers Parser::setHook
do that in ParserLimitReportFormat instead $parser
tagCallback( $text, $params, $parser)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
testFunctionTagHooks( $tag)
@dataProvider provideValidNames @covers Parser::setFunctionTagHook
functionTagCallback(&$parser, $frame, $code, $attribs)
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
The User object encapsulates all of the user-specific settings (user_id, name, rights,...