defs = $defs; } /** * * @param string $string * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool|string */ public function validate($string, $config, $context) { foreach ( $this->defs as $i => $def ) { $result = $this->defs [$i]->validate ( $string, $config, $context ); if ($result !== false) { return $result; } } return false; } } // vim: et sw=4 sts=4