ANDS_XML Class Reference
List of all members.
Detailed Description
A wraper of DOMDocument for data provider
Constructor & Destructor Documentation
ANDS_XML::__construct |
( |
$ |
par_array |
) |
|
Constructs an ANDS_XML object.
- Parameters:
-
| $par_array | Type: array. Array of request parameters for creating an ANDS_XML object. |
- See also:
- create_request.
Member Function Documentation
ANDS_XML::addChild |
( |
$ |
mom_node, |
|
|
$ |
name, |
|
|
$ |
value = '' | |
|
) |
| | |
Add a child node to a parent node on a XML Doc: a worker function.
- Parameters:
-
| $mom_node | Type: DOMNode. The target node. |
| $name | Type: string. The name of child nade is being added |
| $value | Type: string. Text for the adding node if it is a text node. |
- Returns:
- DOMElement $added_node The newly created node, can be used for further expansion. If no further expansion is expected, return value can be igored.
ANDS_XML::create_request |
( |
$ |
par_array |
) |
|
Create an OAI request node.
- Parameters:
-
| $par_array | Type: array The attributes of a request node. They describe the verb of the request and other associated parameters used in the request. Keys of the array define attributes, and values are their content. |
Display a doc in a readable, well-formatted way for display or saving
Member Data Documentation
Type: DOMDocument. Handle of current XML Document object
The documentation for this class was generated from the following file: