public static function PHPExcel_Autoloader::Register in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php \PHPExcel_Autoloader::Register()
Register the Autoloader with SPL
1 call to PHPExcel_Autoloader::Register()
- Autoloader.php in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Autoloader.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Autoloader.php, line 52
Class
- PHPExcel_Autoloader
- PHPExcel_Autoloader
Code
public static function Register() {
if (function_exists('__autoload')) {
// Register any existing autoloader function with SPL, so we don't get any clashes
spl_autoload_register('__autoload');
}
// Register ourselves with SPL
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
return spl_autoload_register(array(
'PHPExcel_Autoloader',
'Load',
), true, true);
}
else {
return spl_autoload_register(array(
'PHPExcel_Autoloader',
'Load',
));
}
}