1 | <?php |
||
5 | class FieldLengthValidator extends RegexFieldValidator |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @param int $min The minimum number of allowed characters |
||
10 | * @param int $max The maximum number of allowed characters |
||
11 | * @param string $allowed The allowed characters as a regex sequence |
||
12 | * @param string $error The string to display if the field does not pass validation |
||
13 | * @param bool $requireInput If false, the user can also leave the field empty |
||
14 | */ |
||
15 | public function __construct ($min, $max, $allowed = ".", $error = "Input must consist of at least %d and no more than %d characters", $requireInput = true) |
||
19 | |||
20 | } |