Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4064383
ParserTestMockParser.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
845 B
Referenced Files
None
Subscribers
None
ParserTestMockParser.php
View Options
<?php
use
MediaWiki\Page\PageReference
;
use
MediaWiki\Parser\Parser
;
use
MediaWiki\Parser\ParserOptions
;
use
MediaWiki\Parser\ParserOutput
;
use
MediaWiki\User\UserIdentity
;
/**
* A parser used during article insertion which does nothing, to avoid
* unnecessary log noise and other interference with debugging.
*/
class
ParserTestMockParser
extends
Parser
{
public
function
__construct
()
{
}
/** @inheritDoc */
public
function
preSaveTransform
(
$text
,
PageReference
$page
,
UserIdentity
$user
,
ParserOptions
$options
,
$clearState
=
true
)
{
return
$text
;
}
/** @inheritDoc */
public
function
parse
(
$text
,
PageReference
$page
,
ParserOptions
$options
,
$linestart
=
true
,
$clearState
=
true
,
$revid
=
null
)
{
return
new
ParserOutput
;
}
/** @inheritDoc */
public
function
getOutput
()
{
return
new
ParserOutput
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 13:54 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/51/311a3f355b462571418fedd299b5
Default Alt Text
ParserTestMockParser.php (845 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment