mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 01:06:20 +02:00
Add preProcess and postProcess infrastructure to HTMLModule and HTMLDefinition so that almost all functionality that does not involve merging the modules together can be factored into modules.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@733 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@ -91,6 +91,22 @@ class HTMLPurifier_HTMLModule
|
||||
*/
|
||||
function getChildDef($def) {return false;}
|
||||
|
||||
/**
|
||||
* Hook method that lets module perform arbitrary operations on
|
||||
* HTMLPurifier_HTMLDefinition before the module gets processed.
|
||||
* @param $definition Reference to HTMLDefinition being setup
|
||||
* @param $config Instance of HTMLPurifier_Config
|
||||
*/
|
||||
function preProcess(&$definition, $config) {}
|
||||
|
||||
/**
|
||||
* Hook method that lets module perform arbitrary operations
|
||||
* on HTMLPurifier_HTMLDefinition after the module gets processed.
|
||||
* @param $definition Reference to HTMLDefinition being setup
|
||||
* @param $config Instance of HTMLPurifier_Config
|
||||
*/
|
||||
function postProcess(&$definition, $config) {}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user