86 $this->definition = clone $a_def;
111 return (clone $this->definition);
143 return ($this->
equals($a_adt) ||
163 return ($this->
equals($a_adt) ||
176 return ($this->
isLarger($a_adt_from) &&
189 return ($this->
equals($a_adt_from) ||
190 $this->
equals($a_adt_to) ||
204 abstract public function isNull();
218 $this->validation_errors = array();
235 $this->validation_errors[] = (string)$a_error_code;
246 if(is_array($this->validation_errors) &&
247 sizeof($this->validation_errors))
249 return array_unique($this->validation_errors);
269 case self::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED:
270 return $lng->txt(
"msg_input_is_required");
272 case self::ADT_VALIDATION_ERROR_MAX_LENGTH:
273 return $lng->txt(
"adt_error_max_length");
275 case self::ADT_VALIDATION_ERROR_MAX_SIZE:
276 return $lng->txt(
"adt_error_max_size");
278 case self::ADT_VALIDATION_ERROR_MIN:
279 return $lng->txt(
"form_msg_value_too_low");
281 case self::ADT_VALIDATION_ERROR_MAX:
282 return $lng->txt(
"form_msg_value_too_high");
285 case self::ADT_VALIDATION_DATE:
286 return $lng->txt(
"exc_date_not_valid");
289 throw new Exception(
"ADT unknown error code");