MediaWiki REL1_30
ParserTestMockParser.php
Go to the documentation of this file.
1<?php
2
8 public function preSaveTransform( $text, Title $title, User $user,
9 ParserOptions $options, $clearState = true
10 ) {
11 return $text;
12 }
13
14 public function parse(
15 $text, Title $title, ParserOptions $options,
16 $linestart = true, $clearState = true, $revid = null
17 ) {
18 return new ParserOutput;
19 }
20}
Set options of the Parser.
A parser used during article insertion which does nothing, to avoid unnecessary log noise and other i...
parse( $text, Title $title, ParserOptions $options, $linestart=true, $clearState=true, $revid=null)
preSaveTransform( $text, Title $title, User $user, ParserOptions $options, $clearState=true)
Represents a title within MediaWiki.
Definition Title.php:39
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:51
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 & $options
Definition hooks.txt:1971