2008-03-02 02:57:31 +00:00
|
|
|
<?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.
|
|
|
|
*/
|
2008-03-02 04:39:14 +00:00
|
|
|
public function validate(&$arr, $interchange) {}
|
2008-03-02 02:57:31 +00:00
|
|
|
|
2008-03-04 04:13:07 +00:00
|
|
|
/**
|
|
|
|
* Throws a HTMLPurifier_ConfigSchema_Exception
|
|
|
|
*/
|
|
|
|
protected function error($msg) {
|
|
|
|
throw new HTMLPurifier_ConfigSchema_Exception($msg);
|
|
|
|
}
|
|
|
|
|
2008-03-02 02:57:31 +00:00
|
|
|
}
|