ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_Yadis_XMLParser Class Reference
+ Inheritance diagram for Auth_Yadis_XMLParser:
+ Collaboration diagram for Auth_Yadis_XMLParser:

Public Member Functions

 init ($xml_string, $namespace_map)
 Initialize an instance of Auth_Yadis_XMLParser with some XML and namespaces.
 registerNamespace ($prefix, $uri)
 Register a namespace with the XML parser.
 setXML ($xml_string)
 Set this parser object's XML payload.
evalXPath ($xpath, $node=null)
 Evaluate an XPath expression and return the resulting node list.
 content ($node)
 Return the textual content of a specified node.
 attributes ($node)
 Return the attributes of a specified node.

Detailed Description

Definition at line 21 of file XML.php.

Member Function Documentation

Auth_Yadis_XMLParser::attributes (   $node)

Return the attributes of a specified node.

Parameters
mixed$nodeA node object from a previous call to $this->evalXPath().
Returns
array $attrs An array mapping attribute names to values.

Reimplemented in Auth_Yadis_dom, and Auth_Yadis_domxml.

Definition at line 121 of file XML.php.

{
// Not implemented.
}
Auth_Yadis_XMLParser::content (   $node)

Return the textual content of a specified node.

Parameters
mixed$nodeA node object from a previous call to $this->evalXPath().
Returns
string $content The content of this node.

Reimplemented in Auth_Yadis_dom, and Auth_Yadis_domxml.

Definition at line 107 of file XML.php.

{
// Not implemented.
}
& Auth_Yadis_XMLParser::evalXPath (   $xpath,
  $node = null 
)

Evaluate an XPath expression and return the resulting node list.

This should be overridden by subclasses.

Parameters
string$xpathThe XPath expression to be evaluated.
mixed$nodeA node object resulting from a previous evalXPath call. This node, if specified, provides the context for the evaluation of this xpath expression.
Returns
array $node_list An array of matching opaque node objects to be used with other methods of this parser class.

Reimplemented in Auth_Yadis_dom, and Auth_Yadis_domxml.

Definition at line 94 of file XML.php.

{
// Not implemented.
}
Auth_Yadis_XMLParser::init (   $xml_string,
  $namespace_map 
)

Initialize an instance of Auth_Yadis_XMLParser with some XML and namespaces.

This SHOULD NOT be overridden by subclasses.

Parameters
string$xml_stringA string of XML to be parsed.
array$namespace_mapAn array of ($ns_name => $ns_uri) to be registered with the XML parser. May be empty.
Returns
boolean $result True if the initialization and namespace registration(s) succeeded; false otherwise.

Definition at line 33 of file XML.php.

References registerNamespace(), and setXML().

{
if (!$this->setXML($xml_string)) {
return false;
}
foreach ($namespace_map as $prefix => $uri) {
if (!$this->registerNamespace($prefix, $uri)) {
return false;
}
}
return true;
}

+ Here is the call graph for this function:

Auth_Yadis_XMLParser::registerNamespace (   $prefix,
  $uri 
)

Register a namespace with the XML parser.

This should be overridden by subclasses.

Parameters
string$prefixThe namespace prefix to appear in XML tag names.
string$uriThe namespace URI to be used to identify the namespace in the XML.
Returns
boolean $result True if the registration succeeded; false otherwise.

Reimplemented in Auth_Yadis_dom, and Auth_Yadis_domxml.

Definition at line 61 of file XML.php.

Referenced by init().

{
// Not implemented.
}

+ Here is the caller graph for this function:

Auth_Yadis_XMLParser::setXML (   $xml_string)

Set this parser object's XML payload.

This should be overridden by subclasses.

Parameters
string$xml_stringThe XML string to pass to this object's XML parser.
Returns
boolean $result True if the initialization succeeded; false otherwise.

Reimplemented in Auth_Yadis_dom, and Auth_Yadis_domxml.

Definition at line 76 of file XML.php.

Referenced by init().

{
// Not implemented.
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: