Cheetah
plugins
htmlpurifier
standalone
HTMLPurifier
ConfigSchema
Interchange.php
Go to the documentation of this file.
1
<?
php
2
8
class
HTMLPurifier_ConfigSchema_Interchange
9
{
10
15
public
$name
;
16
21
public
$directives
= array();
22
28
public
function
addDirective
($directive)
29
{
30
if
(isset($this->directives[$i = $directive->id->toString()])) {
31
throw
new
HTMLPurifier_ConfigSchema_Exception
(
"Cannot redefine directive '$i'"
);
32
}
33
$this->directives[$i] = $directive;
34
}
35
40
public
function
validate
()
41
{
42
$validator =
new
HTMLPurifier_ConfigSchema_Validator
();
43
return
$validator->validate($this);
44
}
45
}
46
47
// vim: et sw=4 sts=4
HTMLPurifier_ConfigSchema_Exception
Definition:
Exception.php:7
php
HTMLPurifier_ConfigSchema_Interchange\addDirective
addDirective($directive)
Definition:
Interchange.php:28
HTMLPurifier_ConfigSchema_Interchange\$directives
$directives
Definition:
Interchange.php:21
HTMLPurifier_ConfigSchema_Interchange\validate
validate()
Definition:
Interchange.php:40
HTMLPurifier_ConfigSchema_Validator
Definition:
Validator.php:12
HTMLPurifier_ConfigSchema_Interchange\$name
$name
Definition:
Interchange.php:15
HTMLPurifier_ConfigSchema_Interchange
Definition:
Interchange.php:9
Generated by
1.8.20