ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
XML.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_Yadis_XMLParser
class  Auth_Yadis_domxml
class  Auth_Yadis_dom

Namespaces

namespace  OpenID
 This module contains code for dealing with associations between consumers and servers.

Functions

 Auth_Yadis_setDefaultParser ($parser)
 Set a default parser to override the extension-driven selection of available parser classes.
 Auth_Yadis_getSupportedExtensions ()
 Auth_Yadis_getXMLParser ()
 Returns an instance of a Auth_Yadis_XMLParser subclass based on the availability of PHP extensions for XML parsing.

Variables

global $__Auth_Yadis_defaultParser = null

Function Documentation

Auth_Yadis_getSupportedExtensions ( )

Definition at line 319 of file XML.php.

Referenced by Auth_Yadis_getXMLParser().

{
return array('dom' => 'Auth_Yadis_dom',
'domxml' => 'Auth_Yadis_domxml');
}

+ Here is the caller graph for this function:

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.

Definition at line 331 of file XML.php.

References $__Auth_Yadis_defaultParser, Auth_Yadis_getSupportedExtensions(), and Auth_Yadis_setDefaultParser().

Referenced by Auth_Yadis_XRDS\parseXRDS().

{
if (isset($__Auth_Yadis_defaultParser)) {
}
foreach(Auth_Yadis_getSupportedExtensions() as $extension => $classname)
{
if (extension_loaded($extension))
{
$p = new $classname();
return $p;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_Yadis_setDefaultParser (   $parser)

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.

Parameters
Auth_Yadis_XMLParser$parserAn instance of a Auth_Yadis_XMLParser subclass.

Definition at line 313 of file XML.php.

References $__Auth_Yadis_defaultParser.

Referenced by Auth_Yadis_getXMLParser().

{
$__Auth_Yadis_defaultParser = $parser;
}

+ Here is the caller graph for this function:

Variable Documentation

$__Auth_Yadis_defaultParser = null

Definition at line 301 of file XML.php.

Referenced by Auth_Yadis_getXMLParser(), and Auth_Yadis_setDefaultParser().