ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules 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

 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. 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.

Referenced by Auth_Yadis_getXMLParser().

320 {
321  return array('dom' => 'Auth_Yadis_dom',
322  'domxml' => 'Auth_Yadis_domxml');
323 }
+ 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.

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

Referenced by Auth_Yadis_XRDS\parseXRDS().

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
Auth_Yadis_setDefaultParser($parser)
Set a default parser to override the extension-driven selection of available parser classes...
Definition: XML.php:313
global $__Auth_Yadis_defaultParser
Definition: XML.php:301
+ 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.

References $__Auth_Yadis_defaultParser.

Referenced by Auth_Yadis_getXMLParser().

314 {
316  $__Auth_Yadis_defaultParser = $parser;
317 }
global $__Auth_Yadis_defaultParser
Definition: XML.php:301
+ 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().