4 * Validates that an field exists in the array
6 class HTMLPurifier_ConfigSchema_Validator_Exists
extends HTMLPurifier_ConfigSchema_Validator
11 public function __construct($index) {
12 $this->index
= $index;
15 public function validate(&$arr, $interchange) {
16 if (empty($arr[$this->index
])) {
17 $this->error($this->index
. ' must exist');