Fix missing version number in config directive, and add TODO item.
[htmlpurifier/darkodev.git] / extras / HTMLPurifierExtras.php
blobc79ae9c6df8d50f0abfd40d3858f0cfa3b05c4f6
1 <?php
3 /**
4 * Meta-class for HTML Purifier's extra class hierarchies, similar to
5 * HTMLPurifier_Bootstrap.
6 */
7 class HTMLPurifierExtras
10 public static function autoload($class) {
11 $path = HTMLPurifierExtras::getPath($class);
12 if (!$path) return false;
13 require $path;
14 return true;
17 public static function getPath($class) {
18 if (
19 strncmp('FSTools', $class, 7) !== 0 &&
20 strncmp('ConfigDoc', $class, 9) !== 0
21 ) return false;
22 // Custom implementations can go here
23 // Standard implementation:
24 return str_replace('_', '/', $class) . '.php';