ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
HTMLPurifierExtras Class Reference

Meta-class for HTML Purifier's extra class hierarchies, similar to HTMLPurifier_Bootstrap. More...

+ Collaboration diagram for HTMLPurifierExtras:

Static Public Member Functions

static autoload ($class)
 
static getPath ($class)
 

Detailed Description

Meta-class for HTML Purifier's extra class hierarchies, similar to HTMLPurifier_Bootstrap.

Definition at line 7 of file HTMLPurifierExtras.php.

Member Function Documentation

◆ autoload()

static HTMLPurifierExtras::autoload (   $class)
static

Definition at line 10 of file HTMLPurifierExtras.php.

References $path, and getPath().

11  {
13  if (!$path) return false;
14  require $path;
15  return true;
16  }
$path
Definition: aliased.php:25
static getPath($class)
+ Here is the call graph for this function:

◆ getPath()

static HTMLPurifierExtras::getPath (   $class)
static

Definition at line 18 of file HTMLPurifierExtras.php.

Referenced by autoload().

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  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: