Element
EPUB-specific subclass of DOMElement
Source: https://github.com/splitbrain/php-epub-meta
- Full name:
\SebLucas\EPubMeta\Dom\Element
- Parent class:
DOMElement
Properties
namespaces
- This property is static.
Methods
__construct
Summary of __construct
public __construct(string $name, string $value = '', string $namespaceUri = ''): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$value |
string | |
$namespaceUri |
string |
__get
Summary of __get
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
__set
Summary of __set
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$value |
mixed |
newChild
Create and append a new child
Works with our epub namespaces and omits default namespaces
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$value |
string |
getAttrib
Simple EPUB namespace aware attribute getter
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
setAttrib
Simple EPUB namespace aware attribute setter
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$value |
mixed |
removeAttrib
Simple EPUB namespace aware attribute remover
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
delete
Remove this node from the DOM
splitQualifiedName
Split given name in namespace prefix and local part
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
Return Value:
(prefix, name)
getNameContext
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
Automatically generated on 2025-03-18