XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
Interchange.php
Go to the documentation of this file.
1
<?php
2
8
class
HTMLPurifier_ConfigSchema_Interchange
9
{
10
14
public
$name
;
15
19
public
$directives
= array();
20
24
public
function
addDirective
($directive) {
25
if
(isset($this->directives[
$i
= $directive->id->toString()])) {
26
throw
new
HTMLPurifier_ConfigSchema_Exception
(
"Cannot redefine directive '$i'"
);
27
}
28
$this->directives[
$i
] = $directive;
29
}
30
35
public
function
validate
() {
36
$validator =
new
HTMLPurifier_ConfigSchema_Validator
();
37
return
$validator->validate($this);
38
}
39
40
}
41
42
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
ConfigSchema
Interchange.php
Generated on Fri May 10 2013 01:04:30 for XOOPS 2.5.6 by
1.8.3.1