4 * Base decorator class for HTMLPurifier_ConfigSchema_Interchange
6 class HTMLPurifier_ConfigSchema_Interchange_Validator
extends HTMLPurifier_ConfigSchema_Interchange
9 * Interchange object this schema is wrapping.
11 protected $interchange;
13 /** @param Object to decorate */
14 public function __construct($i = null) {
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);