Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4128823
DTState.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
903 B
Referenced Files
None
Subscribers
None
DTState.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Utils
;
use
stdClass
;
use
Wikimedia\Parsoid\Config\Env
;
use
Wikimedia\Parsoid\Wt2Html\PegTokenizer
;
/**
* State carried while DOM Traversing.
*
* FIXME: As it stands, DTState cannot be constructed outside of Parsoid.
* However, extensions and core code might benefit from a non-Parsoid-specific
* state object that DOMTraverser users outside of Parsoid could use.
*/
class
DTState
{
public
Env
$env
;
public
array
$options
;
public
bool
$atTopLevel
;
public
?
stdClass
$tplInfo
=
null
;
public
array
$abouts
=
[];
public
array
$seenIds
=
[];
public
array
$usedIdIndex
=
[];
public
?
PegTokenizer
$tokenizer
=
null
;
// Needed by TableFixups handlers
public
function
__construct
(
Env
$env
,
array
$options
=
[],
bool
$atTopLevel
=
false
)
{
$this
->
env
=
$env
;
$this
->
options
=
$options
;
$this
->
atTopLevel
=
$atTopLevel
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 09:28 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/4d/877ca88a264e68800cf517d61cb4
Default Alt Text
DTState.php (903 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment