Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5952553
PageConfigFrame.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
962 B
Referenced Files
None
Subscribers
None
PageConfigFrame.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Wt2Html
;
use
Wikimedia\Parsoid\Config\Env
;
use
Wikimedia\Parsoid\Config\PageConfig
;
use
Wikimedia\Parsoid\Config\SiteConfig
;
use
Wikimedia\Parsoid\Utils\Title
;
/**
* A special subclass of frame used for the topmost frame in the environment;
* gets most of its actual data from a PageConfig object.
*/
class
PageConfigFrame
extends
Frame
{
/**
* Create a top-level frame.
* @param Env $env
* @param PageConfig $pageConfig
* @param SiteConfig $siteConfig
*/
public
function
__construct
(
Env
$env
,
PageConfig
$pageConfig
,
SiteConfig
$siteConfig
)
{
$rev
=
$pageConfig
->
getRevisionContent
();
$content
=
$rev
?
$rev
->
getContent
(
'main'
)
:
''
;
parent
::
__construct
(
Title
::
newFromLinkTarget
(
$pageConfig
->
getLinkTarget
(),
$siteConfig
),
$env
,
[],
$content
,
null
);
}
// XXX: override getSrcText() to mirror $pageConfig, if the $pageConfig
// is mutable?
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 01:33 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/40/c8277483a41f1b0cbd2c9ebe4ddf
Default Alt Text
PageConfigFrame.php (962 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment