A namespace prefix map.
More...
|
| __construct () |
| Create a new empty namespace prefix map.
|
|
bool | found (?string $namespace, string $prefix) |
| Check if a prefix string is found in a namespace prefix map.
|
|
| add (?string $namespace, string $prefix) |
| Add a prefix string to the namespace prefix map.
|
|
string | recordNamespaceInformation (Element $element, array &$localPrefixMap) |
| Record the namespace information for an element, given this namespace prefix map and a local prefixes map.
|
|
string | retrievePreferredPrefix (?string $namespace, ?string $preferredPrefix) |
| Retrieve a preferred prefix string.
|
|
NamespacePrefixMap | clone () |
| Copy a namespace prefix map.
|
|
string | generatePrefix (?string $newNamespace, int &$prefixIndex) |
| Generate a prefix given a map, a string new namespace, and a reference to a prefix index.
|
|
◆ add()
Wikimedia\Dodo\Internal\NamespacePrefixMap::add |
( |
?string | $namespace, |
|
|
string | $prefix ) |
◆ clone()
◆ found()
bool Wikimedia\Dodo\Internal\NamespacePrefixMap::found |
( |
?string | $namespace, |
|
|
string | $prefix ) |
◆ generatePrefix()
string Wikimedia\Dodo\Internal\NamespacePrefixMap::generatePrefix |
( |
?string | $newNamespace, |
|
|
int & | $prefixIndex ) |
◆ recordNamespaceInformation()
string Wikimedia\Dodo\Internal\NamespacePrefixMap::recordNamespaceInformation |
( |
Element | $element, |
|
|
array & | $localPrefixMap ) |
◆ retrievePreferredPrefix()
string Wikimedia\Dodo\Internal\NamespacePrefixMap::retrievePreferredPrefix |
( |
?string | $namespace, |
|
|
?string | $preferredPrefix ) |
The documentation for this class was generated from the following file:
- src/Internal/NamespacePrefixMap.php