mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-11 08:21:52 +00:00
44 lines
1.0 KiB
PHP
44 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Base decorator class for HTMLPurifier_ConfigSchema_Interchange
|
||
|
*/
|
||
|
class HTMLPurifier_ConfigSchema_Interchange_Validator extends HTMLPurifier_ConfigSchema_Interchange
|
||
|
{
|
||
|
/**
|
||
|
* Interchange object this schema is wrapping.
|
||
|
*/
|
||
|
protected $interchange;
|
||
|
|
||
|
/** @param Object to decorate */
|
||
|
public function __construct($i = null) {
|
||
|
$this->decorate($i);
|
||
|
}
|
||
|
|
||
|
/** Wrap this decorator around an object. */
|
||
|
public function decorate($i) {
|
||
|
$this->interchange = $i;
|
||
|
}
|
||
|
|
||
|
public function getNamespaces() {
|
||
|
return $this->interchange->getNamespaces();
|
||
|
}
|
||
|
|
||
|
public function getDirectives() {
|
||
|
return $this->interchange->getDirectives();
|
||
|
}
|
||
|
|
||
|
public function getTypes() {
|
||
|
return $this->interchange->getTypes();
|
||
|
}
|
||
|
|
||
|
public function addNamespace($arr) {
|
||
|
$this->interchange->addNamespace($arr);
|
||
|
}
|
||
|
|
||
|
public function addDirective($arr) {
|
||
|
$this->interchange->addNamespace($arr);
|
||
|
}
|
||
|
|
||
|
}
|