ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Composite.php
Go to the documentation of this file.
1 <?php
2 
13 {
14 
19  public $defs;
20 
24  public function __construct($defs) {
25  $this->defs = $defs;
26  }
27 
28  public function validate($string, $config, $context) {
29  foreach ($this->defs as $i => $def) {
30  $result = $this->defs[$i]->validate($string, $config, $context);
31  if ($result !== false) return $result;
32  }
33  return false;
34  }
35 
36 }
37 
38 // vim: et sw=4 sts=4