mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
e4ab6d584e
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1606 48356398-32a2-884e-a903-53898d9a118a
22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
/**
|
|
* Groups several validators together, which can be used with logical validators
|
|
*/
|
|
class HTMLPurifier_ConfigSchema_Validator_Composite extends HTMLPurifier_ConfigSchema_Validator
|
|
{
|
|
|
|
protected $validators = array();
|
|
|
|
public function addValidator($validator) {
|
|
$this->validators[] = $validator;
|
|
}
|
|
|
|
public function validate(&$arr, $interchange) {
|
|
foreach ($this->validators as $validator) {
|
|
$validator->validate($arr, $interchange);
|
|
}
|
|
}
|
|
|
|
}
|