Auth_Yadis_XMLParser Klassenreferenz

Basisklasse für Auth_Yadis_dom und Auth_Yadis_domxml.


Öffentliche Methoden

 init ($xml_string, $namespace_map)
 registerNamespace ($prefix, $uri)
 setXML ($xml_string)
evalXPath ($xpath, $node=null)
 content ($node)
 attributes ($node)


Ausführliche Beschreibung

Definiert in Zeile 21 der Datei XML.php.


Dokumentation der Elementfunktionen

attributes ( node  ) 

Return the attributes of a specified node.

Parameter:
mixed $node A node object from a previous call to $this->evalXPath().
Rückgabe:
array $attrs An array mapping attribute names to values.

Erneute Implementation in Auth_Yadis_domxml und Auth_Yadis_dom.

Definiert in Zeile 121 der Datei XML.php.

00122     {
00123         // Not implemented.
00124     }

content ( node  ) 

Return the textual content of a specified node.

Parameter:
mixed $node A node object from a previous call to $this->evalXPath().
Rückgabe:
string $content The content of this node.

Erneute Implementation in Auth_Yadis_domxml und Auth_Yadis_dom.

Definiert in Zeile 107 der Datei XML.php.

00108     {
00109         // Not implemented.
00110     }

& evalXPath ( xpath,
node = null 
)

Evaluate an XPath expression and return the resulting node list. This should be overridden by subclasses.

Parameter:
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.
Rückgabe:
array $node_list An array of matching opaque node objects to be used with other methods of this parser class.

Erneute Implementation in Auth_Yadis_domxml und Auth_Yadis_dom.

Definiert in Zeile 94 der Datei XML.php.

00095     {
00096         // Not implemented.
00097     }

init ( xml_string,
namespace_map 
)

Initialize an instance of Auth_Yadis_XMLParser with some XML and namespaces. This SHOULD NOT be overridden by subclasses.

Parameter:
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.
Rückgabe:
boolean $result True if the initialization and namespace registration(s) succeeded; false otherwise.

Definiert in Zeile 33 der Datei XML.php.

00034     {
00035         if (!$this->setXML($xml_string)) {
00036             return false;
00037         }
00038 
00039         foreach ($namespace_map as $prefix => $uri) {
00040             if (!$this->registerNamespace($prefix, $uri)) {
00041                 return false;
00042             }
00043         }
00044 
00045         return true;
00046     }

registerNamespace ( prefix,
uri 
)

Register a namespace with the XML parser. This should be overridden by subclasses.

Parameter:
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.
Rückgabe:
boolean $result True if the registration succeeded; false otherwise.

Erneute Implementation in Auth_Yadis_domxml und Auth_Yadis_dom.

Definiert in Zeile 61 der Datei XML.php.

00062     {
00063         // Not implemented.
00064     }

setXML ( xml_string  ) 

Set this parser object's XML payload. This should be overridden by subclasses.

Parameter:
string $xml_string The XML string to pass to this object's XML parser.
Rückgabe:
boolean $result True if the initialization succeeded; false otherwise.

Erneute Implementation in Auth_Yadis_domxml und Auth_Yadis_dom.

Definiert in Zeile 76 der Datei XML.php.

00077     {
00078         // Not implemented.
00079     }


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen