1 | <?php |
||
23 | class DirEmpty extends AbstractRule |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * The Rule shortname |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $name = 'dir_empty'; |
||
32 | |||
33 | /** |
||
34 | * The error template |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $error_message = '{field} has to be an empty directory'; |
||
39 | |||
40 | /** |
||
41 | * (non-PHPdoc) |
||
42 | * |
||
43 | * @see \mithra62\Validate\RuleInterface::validate() |
||
44 | * @ignore |
||
45 | * |
||
46 | */ |
||
47 | public function validate($field, $input, array $params = array()) |
||
70 | } |
||
71 | } |