1 | <?php |
||
23 | class Date extends AbstractRule |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Contains the rule failure message |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $message = 'The field does not contain a valid date.'; |
||
32 | |||
33 | /** |
||
34 | * @param mixed $value Value to be validated |
||
35 | * @param null $field Unused by this rule |
||
36 | * @param null $allFields |
||
37 | * |
||
38 | * @internal param null $allFields Unused by this rule |
||
39 | * |
||
40 | * @return bool |
||
41 | * |
||
42 | * @since 2.0 |
||
43 | */ |
||
44 | 26 | public function validate($value, $field = null, $allFields = null) |
|
64 | |||
65 | /** |
||
66 | * Returns |
||
67 | * |
||
68 | * array( |
||
69 | * 'format' => <format value> |
||
70 | * ); |
||
71 | * |
||
72 | * @return array |
||
73 | * |
||
74 | * @since 2.0 |
||
75 | */ |
||
76 | 1 | public function getMessageParameters() |
|
85 | |||
86 | } |
||
87 |