ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
autoloader.php
Go to the documentation of this file.
1<?php
2
3spl_autoload_register(function ($class) {
4 if (strpos($class, 'Gettext\\') !== 0) {
5 return;
6 }
7
8 $file = __DIR__.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Gettext'))).'.php';
9
10 if (is_file($file)) {
11 require_once $file;
12 }
13});
An exception for terminatinating execution or to throw for unit testing.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file