simple_xmlnode simple_xmlnode(
mixed
&$parent, mixed
$name, [mixed
$attr = NULL]
)
|
|
array ©(
[$deep
$deep = "-1"]
)
|
|
Copy node until given level
copy() does an infinitely deep copy, as does copy(-1); any non-negative argument tells how deep the copy should be
Parameters:
|
$deep |
$deep: |
Tiefe, die angibt, bis zu welchem Level der Knoten kopiert werde soll |
API Tags:
void deleteAttribute(
mixed
$attKey, $attKey
$this-
)
|
|
Unset given attribute
Parameters:
|
$attKey |
$this-: |
>attributes key which will be unseted |
API Tags:
void deleteChild(
integer
$killPlace
)
|
|
Delete a child
kills the child at the location $killPlace (or at the nearest location to it), and fills in the leftover hole
Parameters:
API Tags:
void extract(
array
&$resultArray, string
&$template, [integer
$depth = 0]
)
|
|
Extracted elements until given depth
extracts references to any node with the same name and attribute values as the template
Parameters:
|
array |
&$resultArray: |
??? |
|
string |
$template: |
??? |
|
integer |
$depth: |
Die Tiefe, bis in welche die Herausziehung vollzogen werden soll |
void extractAtDepth(
array
&$resultArray, string
$template, integer
$targetDepth
)
|
|
Extract element at depth
extracts only those nodes at a specific depths, and returns
a flat array of those nodes, rather than a 2xN array i.e. ["nodes"][N] + ["depth"][N]
Parameters:
|
array |
&$resultArray: |
??? |
|
string |
$template: |
??? |
|
integer |
$targetDepth: |
Zieltieft, also in welcher Tiefe extrahiert werden soll |
void insertChildCopy(
ref
&$newChild, [string
$newPlace = "-1"]
)
|
|
Insert child copy
default for inserting a child node is appending; any non-negative integer passed in will put child as close to that location as possible.*
Parameters:
|
ref |
&$newChild: |
xml node reference |
|
string |
$newPlace: |
|
void insertChildNode(
ref
&$newChild, [string
$newPlace = "-1"]
)
|
|
Insert child node
default for inserting a child node is appending; any non-negative integer passed in will put child as close to that location as possible.
Parameters:
|
ref |
&$newChild: |
xml node reference |
|
string |
$newPlace: |
|
void insertChildText(
$newChild
$newChild, [string
$newPlace = "-1"]
)
|
|
Insert child text
default for inserting a child node is appending; any non-negative integer passed in will put child as close to that location as possible.
Parameters:
|
string |
$newPlace: |
optional, default value "-1" |
|
$newChild |
$newChild: |
|
API Tags:
Output function
prints so that formatted XML is visible in Page Source
API Tags:
Output function
prints so that formatted XML is visible in browser display
API Tags:
void printOut(
string
&$xmlString, [string
$indent = '']
)
|
|
Output function
Parameters:
|
string |
&$xmlString: |
Referenz auf einen XML-String |
|
string |
$indent: |
Einrueckung in Leerstellen; bsp.: " ". |
void printText(
string
&$xmlString
)
|
|
output function
Parameters:
|
string |
&$xmlString: |
Referenz auf einen XML-String |
void __construct(
mixed
&$parent, mixed
$name, [mixed
$attr = NULL]
)
|
|
Constuctor