<?php/** * Meta-class for HTML Purifier's extra class hierarchies, similar to * HTMLPurifier_Bootstrap. */classHTMLPurifierExtras{publicstaticfunctionautoload($class){$path=HTMLPurifierExtras::getPath($class);if(!$path)returnfalse;require$path;returntrue;}publicstaticfunctiongetPath($class){if(strncmp('FSTools',$class,7)!==0&&strncmp('ConfigDoc',$class,9)!==0)returnfalse;// Custom implementations can go here// Standard implementation:returnstr_replace('_','/',$class).'.php';}}// vim: et sw=4 sts=4