Esempio n. 1
0
 public static function validateData(Nette\Forms\IControl $control)
 {
     return $control->validDate($control->year, $control->month, $control->day) && $control->validTime($control->hour, $control->minute);
 }
Esempio n. 2
0
 public static function validateData(Nette\Forms\IControl $control)
 {
     return checkdate((int) $control->month, (int) $control->day, (int) $control->year) && $control->validTime($control->hour, $control->minute);
 }