4 * Meta-class for HTML Purifier's extra class hierarchies, similar to
5 * HTMLPurifier_Bootstrap.
7 class HTMLPurifierExtras
10 public static function autoload($class) {
11 $path = HTMLPurifierExtras
::getPath($class);
12 if (!$path) return false;
17 public static function getPath($class) {
19 strncmp('FSTools', $class, 7) !== 0 &&
20 strncmp('ConfigDoc', $class, 9) !== 0
22 // Custom implementations can go here
23 // Standard implementation:
24 return str_replace('_', '/', $class) . '.php';