Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430952
ContentParseParams.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ContentParseParams.php
View Options
<?php
namespace
MediaWiki\Content\Renderer
;
use
MediaWiki\Page\PageReference
;
use
MediaWiki\Parser\ParserOptions
;
use
MediaWiki\Parser\ParserOutput
;
/**
* @internal
* An object to hold parser params.
*/
class
ContentParseParams
{
/** @var PageReference */
private
$page
;
/** @var int|null */
private
$revId
;
/** @var ParserOptions */
private
$parserOptions
;
/** @var bool */
private
$generateHtml
;
/** @var ?ParserOutput */
private
$previousOutput
;
public
function
__construct
(
PageReference
$page
,
?
int
$revId
=
null
,
?
ParserOptions
$parserOptions
=
null
,
bool
$generateHtml
=
true
,
?
ParserOutput
$previousOutput
=
null
)
{
$this
->
page
=
$page
;
$this
->
parserOptions
=
$parserOptions
??
ParserOptions
::
newFromAnon
();
$this
->
revId
=
$revId
;
$this
->
generateHtml
=
$generateHtml
;
$this
->
previousOutput
=
$previousOutput
;
}
/**
*
* @return PageReference
*/
public
function
getPage
():
PageReference
{
return
$this
->
page
;
}
/**
*
* @return int|null
*/
public
function
getRevId
():
?
int
{
return
$this
->
revId
;
}
/**
*
* @return ParserOptions
*/
public
function
getParserOptions
():
ParserOptions
{
return
$this
->
parserOptions
;
}
/**
*
* @return bool
*/
public
function
getGenerateHtml
():
bool
{
return
$this
->
generateHtml
;
}
/**
*
* @return ?ParserOutput
*/
public
function
getPreviousOutput
():
?
ParserOutput
{
return
$this
->
previousOutput
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 19:50 (4 h, 4 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d4/e8/789f0d139c13a53e3814ceb1684f
Default Alt Text
ContentParseParams.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment