/** * string $value holding time in internal time format. Does not have to be valid for strToTime. */ function validateTime($value) { $minValue = ($this->minValue==null)? "00:00:00": $this->minValue; $maxValue = ($this->maxValue==null)? "23:59:59": $this->maxValue; if ($value === null && $this->minLength > 0) return $this->errorTooShort.$this->minLength; if ($value === null) return null; return $this->validate_min_max($value, $minValue, $maxValue); } |