JanRain OpenID Library

XML.php

XML-parsing classes to wrap the domxml and DOM extensions for PHP 4 and 5, respectively.

Interfaces, Classes, Traits and Enums

Auth_Yadis_XMLParser
The base class for wrappers for available PHP XML-parsing extensions. To work with this Yadis library, subclasses of this class MUST implement the API as defined in the remarks for this class. Subclasses of Auth_Yadis_XMLParser are used to wrap particular PHP XML extensions such as 'domxml'. These are used internally by the library depending on the availability of supported PHP XML extensions.
Auth_Yadis_domxml
This concrete implementation of Auth_Yadis_XMLParser implements the appropriate API for the 'domxml' extension which is typically packaged with PHP 4. This class will be used whenever the 'domxml' extension is detected. See the Auth_Yadis_XMLParser class for details on this class's methods.
Auth_Yadis_dom
This concrete implementation of Auth_Yadis_XMLParser implements the appropriate API for the 'dom' extension which is typically packaged with PHP 5. This class will be used whenever the 'dom' extension is detected. See the Auth_Yadis_XMLParser class for details on this class's methods.

Table of Contents

Auth_Yadis_setDefaultParser()  : mixed
Set a default parser to override the extension-driven selection of available parser classes. This is helpful in a test environment or one in which multiple parsers can be used but one is more desirable.
Auth_Yadis_getSupportedExtensions()  : mixed
Auth_Yadis_getXMLParser()  : Auth_Yadis_XMLParser|bool
Returns an instance of a Auth_Yadis_XMLParser subclass based on the availability of PHP extensions for XML parsing. If Auth_Yadis_setDefaultParser has been called, the parser used in that call will be returned instead.

Functions

Auth_Yadis_setDefaultParser()

Set a default parser to override the extension-driven selection of available parser classes. This is helpful in a test environment or one in which multiple parsers can be used but one is more desirable.

Auth_Yadis_setDefaultParser(Auth_Yadis_XMLParser $parser) : mixed
Parameters
$parser : Auth_Yadis_XMLParser

An instance of a Auth_Yadis_XMLParser subclass.

Return values
mixed

Auth_Yadis_getSupportedExtensions()

Auth_Yadis_getSupportedExtensions() : mixed
Return values
mixed

Auth_Yadis_getXMLParser()

Returns an instance of a Auth_Yadis_XMLParser subclass based on the availability of PHP extensions for XML parsing. If Auth_Yadis_setDefaultParser has been called, the parser used in that call will be returned instead.

Auth_Yadis_getXMLParser() : Auth_Yadis_XMLParser|bool
Return values
Auth_Yadis_XMLParser|bool

Search results