1 | <?php |
||
24 | class Host extends AbstractRule |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * The Rule shortname |
||
29 | * |
||
30 | * @var unknown |
||
31 | */ |
||
32 | protected $name = 'host'; |
||
33 | |||
34 | /** |
||
35 | * the error template |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $error_message = '{field} isn\'t a valid host (IP or hostname)'; |
||
40 | |||
41 | /** |
||
42 | * (non-PHPdoc) |
||
43 | * |
||
44 | * @see \JaegerApp\Validate\RuleInterface::validate() |
||
45 | * @ignore |
||
46 | * |
||
47 | */ |
||
48 | public function validate($field, $input, array $params = array()) |
||
56 | } |
||
57 | } |