mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
4c798bd17e
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1596 48356398-32a2-884e-a903-53898d9a118a
27 lines
653 B
PHP
27 lines
653 B
PHP
<?php
|
|
|
|
/**
|
|
* Base validator for HTMLPurifier_ConfigSchema_Interchange
|
|
*/
|
|
class HTMLPurifier_ConfigSchema_Validator
|
|
{
|
|
|
|
/**
|
|
* Common validator, throwing an exception on error. It can
|
|
* also performing filtering or evaluation functions.
|
|
*
|
|
* @param $arr Array to validate.
|
|
* @param $interchange HTMLPurifier_ConfigSchema_Interchange object
|
|
* that is being processed.
|
|
*/
|
|
public function validate(&$arr, $interchange) {}
|
|
|
|
/**
|
|
* Throws a HTMLPurifier_ConfigSchema_Exception
|
|
*/
|
|
protected function error($msg) {
|
|
throw new HTMLPurifier_ConfigSchema_Exception($msg);
|
|
}
|
|
|
|
}
|