Page MenuHomeWickedGov Phorge

WTUtils.php
No OneTemporary

Size
901 B
Referenced Files
None
Subscribers
None

WTUtils.php

<?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

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)

Event Timeline