ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 is the PHP OpenID library by JanRain, Inc.
 

Functions

 Auth_Yadis_setDefaultParser ($parser)
 Set a default parser to override the extension-driven selection of available parser classes. More...
 
 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. More...
 

Variables

global $__Auth_Yadis_defaultParser = null
 

Function Documentation

◆ Auth_Yadis_getSupportedExtensions()

Auth_Yadis_getSupportedExtensions ( )

Definition at line 319 of file XML.php.

320{
321 return array('dom' => 'Auth_Yadis_dom',
322 'domxml' => 'Auth_Yadis_domxml');
323}

Referenced by Auth_Yadis_getXMLParser().

+ Here is the caller graph for this function:

◆ Auth_Yadis_getXMLParser()

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.

332{
334
335 if (isset($__Auth_Yadis_defaultParser)) {
337 }
338
339 foreach(Auth_Yadis_getSupportedExtensions() as $extension => $classname)
340 {
341 if (extension_loaded($extension))
342 {
343 $p = new $classname();
345 return $p;
346 }
347 }
348
349 return false;
350}
Auth_Yadis_getSupportedExtensions()
Definition: XML.php:319
global $__Auth_Yadis_defaultParser
Definition: XML.php:301
Auth_Yadis_setDefaultParser($parser)
Set a default parser to override the extension-driven selection of available parser classes.
Definition: XML.php:313

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

Referenced by Auth_Yadis_XRDS\parseXRDS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Auth_Yadis_setDefaultParser()

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.

314{
317}

References $__Auth_Yadis_defaultParser.

Referenced by Auth_Yadis_getXMLParser().

+ Here is the caller graph for this function:

Variable Documentation

◆ $__Auth_Yadis_defaultParser

$__Auth_Yadis_defaultParser = null

Definition at line 301 of file XML.php.

Referenced by Auth_Yadis_getXMLParser(), and Auth_Yadis_setDefaultParser().