4 * Validates that an ID field exists in the array
6 class HTMLPurifier_ConfigSchema_Validator_IdExists
extends HTMLPurifier_ConfigSchema_Validator
9 public function validate(&$arr, $interchange, $type) {
10 if (!isset($arr['ID'])) {
11 throw new HTMLPurifier_ConfigSchema_Exception('ID must exist in ' . $type);