| @@ -1,13 +1,13 @@ | ||
| 1 | -<?php | |
| 2 | -class Validation_Date extends Validation { | |
| 3 | - protected $message = "Error: %element% must contain a valid date."; | |
| 4 | - | |
| 5 | - public function isValid($value) { | |
| 6 | - try { | |
| 7 | - $date = new DateTime($value); | |
| 8 | - return true; | |
| 9 | - } catch(Exception $e) { | |
| 10 | - return false; | |
| 11 | - } | |
| 12 | - } | |
| 13 | -} | |
| 1 | +<?php | |
| 2 | +class Validation_Date extends Validation { | |
| 3 | + protected $message = "Error: %element% must contain a valid date."; | |
| 4 | + | |
| 5 | + public function isValid($value) { | |
| 6 | + try { | |
| 7 | + $date = new DateTime($value); | |
| 8 | + return true; | |
| 9 | + } catch(Exception $e) { | |
| 10 | + return false; | |
| 11 | + } | |
| 12 | + } | |
| 13 | +} | |