ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ConfigSchema.php
Go to the documentation of this file.
1
<?
php
2
7
class
HTMLPurifier_ConfigSchema_Builder_ConfigSchema
8
{
9
14
public
function
build
(
$interchange
)
15
{
16
$schema
=
new
HTMLPurifier_ConfigSchema
();
17
foreach
(
$interchange
->directives as
$d
) {
18
$schema
->add(
19
$d
->id->key,
20
$d
->default,
21
$d
->type,
22
$d
->typeAllowsNull
23
);
24
if
(
$d
->allowed !==
null
) {
25
$schema
->addAllowedValues(
26
$d
->id->key,
27
$d
->allowed
28
);
29
}
30
foreach
(
$d
->aliases as $alias) {
31
$schema
->addAlias(
32
$alias->key,
33
$d
->id->key
34
);
35
}
36
if
(
$d
->valueAliases !==
null
) {
37
$schema
->addValueAliases(
38
$d
->id->key,
39
$d
->valueAliases
40
);
41
}
42
}
43
$schema
->postProcess();
44
return
$schema
;
45
}
46
}
47
48
// vim: et sw=4 sts=4
php
An exception for terminatinating execution or to throw for unit testing.
HTMLPurifier_ConfigSchema_Builder_ConfigSchema
Converts HTMLPurifier_ConfigSchema_Interchange to our runtime representation used to perform checks o...
Definition:
ConfigSchema.php:8
HTMLPurifier_ConfigSchema_Builder_ConfigSchema\build
build($interchange)
Definition:
ConfigSchema.php:14
HTMLPurifier_ConfigSchema
Configuration definition, defines directives and their defaults.
Definition:
ConfigSchema.php:7
$d
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
Definition:
date.php:296
$schema
$schema
Definition:
generate-schema-cache.php:39
$interchange
$interchange
Definition:
generate-schema-cache.php:25
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
ConfigSchema
Builder
ConfigSchema.php
Generated on Tue Sep 30 2025 19:00:51 for ILIAS by
1.9.4 (using
Doxyfile
)