ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
HTMLPurifierExtras.autoload.php
Go to the documentation of this file.
1<?php
2
13if (function_exists('spl_autoload_register')) {
14 spl_autoload_register(array('HTMLPurifierExtras', 'autoload'));
15 if (function_exists('__autoload')) {
16 // Be polite and ensure that userland autoload gets retained
17 spl_autoload_register('__autoload');
18 }
19} elseif (!function_exists('__autoload')) {
20 function __autoload($class)
21 {
22 return HTMLPurifierExtras::autoload($class);
23 }
24}
25
26// vim: et sw=4 sts=4
An exception for terminatinating execution or to throw for unit testing.
static autoload($class)