Fragment __construct(
DOMDocument
$domFragment, [
$root = NULL]
)
|
|
Constructor method.
Parameters:
|
DOMDocument |
$domFragment: |
Basic DOM document. |
|
|
$root: |
|
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefined in descendants as:
void appendChild(
$child
)
|
|
Set attribute with namespace.
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 16. Mar. 2007 |
DOMElement createDCElement(
$string
$tag
)
|
|
Create an DOMElement in the DC namespace with tag $tag.
Parameters:
|
$string |
$tag: |
Tag of the new DOMElement |
API Tags:
| Deprecated: | 0.5.2 - 05. Mar. 2007 Use the AbstractDocument->create...Element() method instead! |
| Access: | protected |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
DOMElement createMetaElement(
$string
$tag
)
|
|
Create an DOMElement in the Meta namespace with tag $tag.
Parameters:
|
$string |
$tag: |
Tag of the new DOMElement |
API Tags:
| Deprecated: | 0.5.2 - 05. Mar. 2007 Use the AbstractDocument->create...Element() method instead! |
| Access: | protected |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
DOMElement createOfficeElement(
string
$tag
)
|
|
Create an DOMElement in the Office namespace with tag $tag.
Example:
will create an DOMElement like: <office:document xmlns:office="" />
.
Parameters:
|
string |
$tag: |
Tag of the new DOMElement |
API Tags:
| Deprecated: | 0.5.2 - 05. Mar. 2007 Use the AbstractDocument->create...Element() method instead! |
| Access: | protected |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
DOMElement createStyleElement(
$string
$tag
)
|
|
Create an DOMElement in the Meta namespace with tag $tag.
Parameters:
|
$string |
$tag: |
Tag of the new DOMElement |
API Tags:
| Deprecated: | 0.5.2 - 05. Mar. 2007 Use the AbstractDocument->create...Element() method instead! |
| Access: | protected |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
bool getChild(
$namespace,
$tag
)
|
|
Retrieve a child by its namespace and tag from the current node.
Parameters:
API Tags:
| Return: | True, if there is such an element else false. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 05. Mar. 2007 |
DOMElement getDocumentFragment(
)
|
|
Returns the root DOMElement of this DOM fragment.
API Tags:
| Return: | Root node of this DOM fragment. |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefined in descendants as:
void getTag(
$query,
$namespace,
$tag,
$defaultValue
)
|
|
Parameters:
|
|
$query: |
|
|
|
$namespace: |
|
|
|
$tag: |
|
|
|
$defaultValue: |
|
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefined in descendants as:
bool hasChild(
$namespace,
$tag
)
|
|
Check if the current element has a child $tag with $namespace.
Parameters:
API Tags:
| Return: | True, if there is such an element else false. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 04. Mar. 2007 |
Initialize xpath. You must do this before using xpath.
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void setTag(
DOMElement
$node, DOMElement
$newNode
)
|
|
Set (which means append or replace an existing node) a new node.
Parameters:
|
DOMElement |
$node: |
Old node which should be replaced |
|
DOMElement |
$newNode: |
New node which should be appended or replace the $node node |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |