* @package tao */ class tao_helpers_form_validators_AlphaNum extends tao_helpers_form_validators_Regex { /** * (non-PHPdoc) * @see tao_helpers_form_validators_Regex::setOptions() */ public function setOptions(array $options) { $options['format'] = isset($options['allow_punctuation']) ? "/^[a-zA-Z0-9_\-]*$/" : "/^[a-zA-Z0-9]*$/"; parent::setOptions($options); } }