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