Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6066053
SerializerNode.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
SerializerNode.php
View Options
<?php
namespace
Wikimedia\RemexHtml\Serializer
;
use
Wikimedia\RemexHtml\PropGuard
;
use
Wikimedia\RemexHtml\Tokenizer\Attributes
;
class
SerializerNode
{
use
PropGuard
;
/** @var int The integer index into Serializer::$nodes of this node */
public
$id
;
/** @var int The integer index into Serializer::$nodes of the parent node */
public
$parentId
;
/** @var string The element namespace */
public
$namespace
;
/** @var string The element name */
public
$name
;
/** @var Attributes */
public
$attrs
;
/**
* @var bool The void flag as in TreeHandler::insertElement
* @see \Wikimedia\RemexHtml\TreeBuilder\TreeHandler::insertElement
*/
public
$void
;
/** @var SerializerNode[] */
public
$children
=
[];
/**
* Arbitrary user data can be placed here.
*
* @var mixed
*/
public
$snData
;
/**
* @param int $id The integer index into Serializer::$nodes of this node
* @param int $parentId The integer index into Serializer::$nodes of the parent node
* @param string $namespace The XML namespace
* @param string $name The element name
* @param Attributes $attrs The element attributes
* @param bool $void The void flag as in TreeHandler::insertElement
*/
public
function
__construct
(
$id
,
$parentId
,
$namespace
,
$name
,
$attrs
,
$void
)
{
$this
->
id
=
$id
;
$this
->
parentId
=
$parentId
;
$this
->
namespace
=
$namespace
;
$this
->
name
=
$name
;
$this
->
attrs
=
$attrs
;
$this
->
void
=
$void
;
}
/**
* Get a string identifying the node, for use in debugging.
* @return string
*/
public
function
getDebugTag
()
{
return
$this
->
name
.
'#'
.
$this
->
id
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 04:39 (6 w, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ec/27/4058a27b2396bcd76c251384fd4b
Default Alt Text
SerializerNode.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment