Converts HTMLPurifier_ConfigSchema_Interchange to our runtime representation used to perform checks on user configuration.
More...
Public Member Functions |
| build ($interchange) |
Detailed Description
Converts HTMLPurifier_ConfigSchema_Interchange to our runtime representation used to perform checks on user configuration.
Definition at line 7 of file ConfigSchema.php.
Member Function Documentation
HTMLPurifier_ConfigSchema_Builder_ConfigSchema::build |
( |
|
$interchange | ) |
|
Definition at line 10 of file ConfigSchema.php.
References $d.
{
foreach ($interchange->directives as
$d) {
$schema->add(
$d->id->key,
$d->default,
$d->type,
$d->typeAllowsNull
);
if ($d->allowed !== null) {
$schema->addAllowedValues(
$d->id->key,
$d->allowed
);
}
foreach ($d->aliases as $alias) {
$schema->addAlias(
$alias->key,
$d->id->key
);
}
if ($d->valueAliases !== null) {
$schema->addValueAliases(
$d->id->key,
$d->valueAliases
);
}
}
$schema->postProcess();
return $schema;
}
The documentation for this class was generated from the following file:
- Services/Html/HtmlPurifier/library/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php