[3.1.0] Reconfigure tester to glob for test files using *Test.php pattern.
[htmlpurifier.git] / library / HTMLPurifier / ConfigSchema / Interchange / Validator.php
blobfae8557d23cd2429efd0a8805966cee186ff44ab
1 <?php
3 /**
4 * Base decorator class for HTMLPurifier_ConfigSchema_Interchange
5 */
6 class HTMLPurifier_ConfigSchema_Interchange_Validator extends HTMLPurifier_ConfigSchema_Interchange
8 /**
9 * Interchange object this schema is wrapping.
11 protected $interchange;
13 /** @param Object to decorate */
14 public function __construct($i = null) {
15 $this->decorate($i);
18 /** Wrap this decorator around an object. */
19 public function decorate($i) {
20 $this->interchange = $i;
23 public function getNamespaces() {
24 return $this->interchange->getNamespaces();
27 public function getDirectives() {
28 return $this->interchange->getDirectives();
31 public function getTypes() {
32 return $this->interchange->getTypes();
35 public function addNamespace($arr) {
36 $this->interchange->addNamespace($arr);
39 public function addDirective($arr) {
40 $this->interchange->addNamespace($arr);