ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Interchange.php
Go to the documentation of this file.
1 <?php
2 
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