ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HTMLPurifier_ConfigSchema_Builder_ConfigSchema Class Reference

Converts HTMLPurifier_ConfigSchema_Interchange to our runtime representation used to perform checks on user configuration. More...

+ Collaboration diagram for HTMLPurifier_ConfigSchema_Builder_ConfigSchema:

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.

{
$schema = new HTMLPurifier_ConfigSchema();
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: