4 * Converts HTMLPurifier_ConfigSchema_Interchange to our runtime
5 * representation used to perform checks on user configuration.
7 class HTMLPurifier_ConfigSchema_Builder_ConfigSchema
10 public function build($interchange) {
11 $schema = new HTMLPurifier_ConfigSchema();
12 foreach ($interchange->directives as $d) {
19 if ($d->allowed !== null) {
20 $schema->addAllowedValues(
25 foreach ($d->aliases as $alias) {
31 if ($d->valueAliases !== null) {
32 $schema->addValueAliases(
38 $schema->postProcess();