ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
HTMLPurifierExtras.php
Go to the documentation of this file.
1 <?php
2 
8 {
9 
10  public static function autoload($class)
11  {
13  if (!$path) return false;
14  require $path;
15  return true;
16  }
17 
18  public static function getPath($class)
19  {
20  if (
21  strncmp('FSTools', $class, 7) !== 0 &&
22  strncmp('ConfigDoc', $class, 9) !== 0
23  ) return false;
24  // Custom implementations can go here
25  // Standard implementation:
26  return str_replace('_', '/', $class) . '.php';
27  }
28 
29 }
30 
31 // vim: et sw=4 sts=4
static autoload($class)
$path
Definition: aliased.php:25
Meta-class for HTML Purifier&#39;s extra class hierarchies, similar to HTMLPurifier_Bootstrap.
static getPath($class)