4 * Converts HTMLPurifier_ConfigSchema_Interchange to our runtime
5 * representation used to perform checks on user configuration.
7 class HTMLPurifier_ConfigSchema_Builder_ConfigSchema
11 * @param HTMLPurifier_ConfigSchema_Interchange $interchange
12 * @return HTMLPurifier_ConfigSchema
14 public function build($interchange)
16 $schema = new HTMLPurifier_ConfigSchema();
17 foreach ($interchange->directives
as $d) {
24 if ($d->allowed
!== null) {
25 $schema->addAllowedValues(
30 foreach ($d->aliases
as $alias) {
36 if ($d->valueAliases
!== null) {
37 $schema->addValueAliases(
43 $schema->postProcess();