Source for file HTMLPurifierExtras.php

Documentation is available at HTMLPurifierExtras.php

  1. <?php
  2.  
  3. /**
  4.  * Meta-class for HTML Purifier's extra class hierarchies, similar to
  5.  * HTMLPurifier_Bootstrap.
  6.  */
  7. {
  8.     
  9.     public static function autoload($class{
  10.         $path HTMLPurifierExtras::getPath($class);
  11.         if (!$pathreturn false;
  12.         require $path;
  13.         return true;
  14.     }
  15.     
  16.     public static function getPath($class{
  17.         if (
  18.             strncmp('FSTools'$class7!== &&
  19.             strncmp('ConfigDoc'$class9!== 0
  20.         return false;
  21.         // Custom implementations can go here
  22.         // Standard implementation:
  23.         return str_replace('_''/'$class'.php';
  24.     }
  25.     
  26. }

Documentation generated on Thu, 19 Jun 2008 18:49:35 -0400 by phpDocumentor 1.4.2