[3.1.0] Reconfigure tester to glob for test files using *Test.php pattern.
[htmlpurifier.git] / library / HTMLPurifier / ConfigSchema / Interchange / Validator / IdExists.php
blob231532422026a65fe793fd6f40b1a5ed9e0ff514
1 <?php
3 class HTMLPurifier_ConfigSchema_Interchange_Validator_IdExists extends HTMLPurifier_ConfigSchema_Interchange_Validator
6 public function addNamespace($arr) {
7 if (!isset($arr['ID'])) {
8 throw new HTMLPurifier_ConfigSchema_Exception('Namespace must have ID');
10 parent::addNamespace($arr);
13 public function addDirective($arr) {
14 if (!isset($arr['ID'])) {
15 throw new HTMLPurifier_ConfigSchema_Exception('Directive must have ID');
17 parent::addDirective($arr);