1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

Remove decorator pattern from validator; we'll only have one decorator which invokes the subsystem.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1586 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-02 02:57:31 +00:00
parent fa6b6fe85f
commit d81bcbd208
10 changed files with 87 additions and 99 deletions

View File

@@ -11,7 +11,7 @@ class HTMLPurifier_ConfigSchema_Interchange
/**
* Hash table of allowed types.
*/
protected $types = array(
private $types = array(
'string' => 'String',
'istring' => 'Case-insensitive string',
'text' => 'Text',
@@ -28,12 +28,12 @@ class HTMLPurifier_ConfigSchema_Interchange
/**
* Array of Namespace ID => array(namespace info)
*/
protected $namespaces;
private $namespaces;
/**
* Array of Directive ID => array(directive info)
*/
protected $directives;
private $directives;
/** Get all namespaces */
public function getNamespaces() {return $this->namespaces;}
@@ -71,9 +71,7 @@ class HTMLPurifier_ConfigSchema_Interchange
* to be used for data-input.
*/
public function getValidatorAdapter() {
return
new HTMLPurifier_ConfigSchema_Interchange_Validator_IdExists(
$this);
}
}