XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
Interchange.php
Go to the documentation of this file.
1 <?php
2 
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