Öffentliche Methoden | |
Auth_Yadis_domxml () | |
setXML ($xml_string) | |
registerNamespace ($prefix, $uri) | |
& | evalXPath ($xpath, $node=null) |
content ($node) | |
attributes ($node) |
Definiert in Zeile 136 der Datei XML.php.
attributes | ( | $ | node | ) |
Return the attributes of a specified node.
mixed | $node A node object from a previous call to $this->evalXPath(). |
Erneute Implementation von Auth_Yadis_XMLParser.
Definiert in Zeile 193 der Datei XML.php.
00194 { 00195 if ($node) { 00196 $arr = $node->attributes(); 00197 $result = array(); 00198 00199 if ($arr) { 00200 foreach ($arr as $attrnode) { 00201 $result[$attrnode->name] = $attrnode->value; 00202 } 00203 } 00204 00205 return $result; 00206 } 00207 }
content | ( | $ | node | ) |
Return the textual content of a specified node.
mixed | $node A node object from a previous call to $this->evalXPath(). |
Erneute Implementation von Auth_Yadis_XMLParser.
Definiert in Zeile 186 der Datei XML.php.
& evalXPath | ( | $ | xpath, | |
$ | node = null | |||
) |
Evaluate an XPath expression and return the resulting node list. This should be overridden by subclasses.
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. |
Erneute Implementation von Auth_Yadis_XMLParser.
Definiert in Zeile 165 der Datei XML.php.
00166 { 00167 if ($node) { 00168 $result = @$this->xpath->xpath_eval($xpath, $node); 00169 } else { 00170 $result = @$this->xpath->xpath_eval($xpath); 00171 } 00172 00173 if (!$result) { 00174 $n = array(); 00175 return $n; 00176 } 00177 00178 if (!$result->nodeset) { 00179 $n = array(); 00180 return $n; 00181 } 00182 00183 return $result->nodeset; 00184 }
registerNamespace | ( | $ | prefix, | |
$ | uri | |||
) |
Register a namespace with the XML parser. This should be overridden by subclasses.
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. |
Erneute Implementation von Auth_Yadis_XMLParser.
Definiert in Zeile 160 der Datei XML.php.
setXML | ( | $ | xml_string | ) |
Set this parser object's XML payload. This should be overridden by subclasses.
string | $xml_string The XML string to pass to this object's XML parser. |
Erneute Implementation von Auth_Yadis_XMLParser.
Definiert in Zeile 145 der Datei XML.php.
00146 { 00147 $this->xml = $xml_string; 00148 $this->doc = @domxml_open_mem($xml_string, DOMXML_LOAD_PARSING, 00149 $this->errors); 00150 00151 if (!$this->doc) { 00152 return false; 00153 } 00154 00155 $this->xpath = $this->doc->xpath_new_context(); 00156 00157 return true; 00158 }
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|