ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
_autoload.php
Go to the documentation of this file.
1 <?php
2 
15 function SAML2_autoload($className)
16 {
17  // handle classes that have been renamed
18  $renamed = array(
19  'SAML2_Const' => 'SAML2_Constants',
20  );
21  $oldName = $className;
22  if (array_key_exists($className, $renamed)) {
23  $className = $renamed[$className];
24  }
25 
26  $file = dirname(__FILE__).'/'.str_replace('_', '/', $className).'.php';
27  if (file_exists($file)) {
28  require_once($file);
29  $newName = '\\'.str_replace('_', '\\', $className);
30  class_alias($newName, $oldName);
31  }
32 
33 }
34 
35 spl_autoload_register('SAML2_autoload');
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
SAML2_autoload($className)
Autoload function that looks for classes migrated to PSR-2.
Definition: _autoload.php:15