| 1 | <?php |
||
| 25 | class DateValidator extends YiiDateValidator |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Checks if the given value is empty. |
||
| 29 | * A value is considered empty if it is null, an empty array, or an empty string. |
||
| 30 | * We also treat some dates e.g. 0000-00-00 as empty |
||
| 31 | * Note that this method is different from PHP empty(). It will return false when the value is 0. |
||
| 32 | * @param mixed $value the value to be checked |
||
| 33 | * @return boolean whether the value is empty |
||
| 34 | */ |
||
| 35 | public function isEmpty($value) |
||
| 43 | |||
| 44 | } |
||
| 45 |