array attributes(
mixed
$node
)
|
|
Return the attributes of a specified node.
Parameters:
|
mixed |
$node: |
A node object from a previous call to $this->evalXPath(). |
API Tags:
| Return: | An array mapping attribute names to values. |
Redefined in descendants as:
string content(
mixed
$node
)
|
|
Return the textual content of a specified node.
Parameters:
|
mixed |
$node: |
A node object from a previous call to $this->evalXPath(). |
API Tags:
| Return: | The content of this node. |
Redefined in descendants as:
array &evalXPath(
string
$xpath, [mixed
$node = null]
)
|
|
Evaluate an XPath expression and return the resulting node list. This should be overridden by subclasses.
Parameters:
|
string |
$xpath: |
The XPath expression to be evaluated. |
|
mixed |
$node: |
A node object resulting from a previous evalXPath call. This node, if specified, provides the context for the evaluation of this xpath expression. |
API Tags:
| Return: | An array of matching opaque node objects to be used with other methods of this parser class. |
Redefined in descendants as:
boolean init(
string
$xml_string, array
$namespace_map
)
|
|
Initialize an instance of Auth_Yadis_XMLParser with some XML and namespaces. This SHOULD NOT be overridden by subclasses.
Parameters:
|
string |
$xml_string: |
A string of XML to be parsed. |
|
array |
$namespace_map: |
An array of ($ns_name => $ns_uri) to be registered with the XML parser. May be empty. |
API Tags:
| Return: | True if the initialization and namespace registration(s) succeeded; false otherwise. |
boolean registerNamespace(
string
$prefix, string
$uri
)
|
|
Register a namespace with the XML parser. This should be overridden by subclasses.
Parameters:
|
string |
$prefix: |
The namespace prefix to appear in XML tag names. |
|
string |
$uri: |
The namespace URI to be used to identify the namespace in the XML. |
API Tags:
| Return: | True if the registration succeeded; false otherwise. |
Redefined in descendants as:
boolean setXML(
string
$xml_string
)
|
|
Set this parser object's XML payload. This should be overridden by subclasses.
Parameters:
|
string |
$xml_string: |
The XML string to pass to this object's XML parser. |
API Tags:
| Return: | True if the initialization succeeded; false otherwise. |
Redefined in descendants as: