Source for file HTMLPurifierExtras.autoload.php

Documentation is available at HTMLPurifierExtras.autoload.php

  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  *  Convenience file that registers autoload handler for HTML Purifier.
  6.  * 
  7.  * @warning
  8.  *       This autoloader does not contain the compatibility code seen in
  9.  *       HTMLPurifier_Bootstrap; the user is expected to make any necessary
  10.  *       changes to use this library.
  11.  */
  12.  
  13. if (function_exists('spl_autoload_register')) {
  14.     spl_autoload_register(array('HTMLPurifierExtras''autoload'));
  15.     if (function_exists('__autoload')) {
  16.         // Be polite and ensure that userland autoload gets retained
  17.         spl_autoload_register('__autoload');
  18.     }
  19. elseif (!function_exists('__autoload')) {
  20.     function __autoload($class{
  21.         return HTMLPurifierExtras::autoload($class);
  22.     }
  23. }

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