Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5958609
WTUtils.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
901 B
Referenced Files
None
Subscribers
None
WTUtils.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Ext
;
use
Wikimedia\Parsoid\DOM\Element
;
use
Wikimedia\Parsoid\DOM\Node
;
use
Wikimedia\Parsoid\Utils\WTUtils
as
WTU
;
/**
* This class provides helpers needed by extensions.
* These helpers help with extracting wikitext information from the DOM.
*/
class
WTUtils
{
/**
* Is $node a sealed DOMFragment of a specific extension?
*/
public
static
function
isSealedFragmentOfType
(
Node
$node
,
string
$name
):
bool
{
return
WTU
::
isSealedFragmentOfType
(
$node
,
$name
);
}
public
static
function
hasVisibleCaption
(
Element
$node
):
bool
{
return
WTU
::
hasVisibleCaption
(
$node
);
}
public
static
function
textContentFromCaption
(
Node
$node
):
string
{
return
WTU
::
textContentFromCaption
(
$node
);
}
public
static
function
fromEncapsulatedContent
(
Node
$node
):
bool
{
return
WTU
::
fromEncapsulatedContent
(
$node
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 05:54 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/ed/70d9e07790a2786095f085d013ad
Default Alt Text
WTUtils.php (901 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment