Метод | Описание | |
---|---|---|
attributes ( mixed $node ) : array | Return the attributes of a specified node. | |
content ( mixed $node ) : string | Return the textual content of a specified node. | |
evalXPath ( string $xpath, mixed $node = null ) : array | Evaluate an XPath expression and return the resulting node list. This should be overridden by subclasses. | |
init ( string $xml_string, array $namespace_map ) : boolean | Initialize an instance of Auth_Yadis_XMLParser with some XML and namespaces. This SHOULD NOT be overridden by subclasses. | |
registerNamespace ( string $prefix, string $uri ) : boolean | Register a namespace with the XML parser. This should be overridden by subclasses. | |
setXML ( string $xml_string ) : boolean | Set this parser object's XML payload. This should be overridden by subclasses. |
public attributes ( mixed $node ) : array | ||
$node | mixed | A node object from a previous call to $this->evalXPath(). |
Результат | array | $attrs An array mapping attribute names to values. |
public evalXPath ( string $xpath, mixed $node = null ) : array | ||
$xpath | string | The XPath expression to be evaluated. |
$node | mixed | A node object resulting from a previous evalXPath call. This node, if specified, provides the context for the evaluation of this xpath expression. |
Результат | array | $node_list An array of matching opaque node objects to be used with other methods of this parser class. |
public init ( string $xml_string, array $namespace_map ) : boolean | ||
$xml_string | string | A string of XML to be parsed. |
$namespace_map | array | An array of ($ns_name => $ns_uri) to be registered with the XML parser. May be empty. |
Результат | boolean | $result True if the initialization and namespace registration(s) succeeded; false otherwise. |