1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 05:37:49 +02:00

[3.1.0] Initial validator implementation for namespaces.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1622 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-22 20:26:04 +00:00
parent 56cfcba5d1
commit 34ba0e408f
6 changed files with 175 additions and 3 deletions

View File

@@ -11,12 +11,12 @@ class HTMLPurifier_ConfigSchema_Interchange
/**
* Array of Namespace ID => array(namespace info)
*/
public $namespaces;
public $namespaces = array();
/**
* Array of Directive ID => array(directive info)
*/
public $directives;
public $directives = array();
/**
* Adds a namespace array to $namespaces
@@ -29,7 +29,7 @@ class HTMLPurifier_ConfigSchema_Interchange
* Adds a directive array to $directives
*/
public function addDirective($directive) {
$this->directives[(string) $directive->id] = $directive;
$this->directives[$directive->id->__toString()] = $directive;
}
}