From e2f87534ff022bdc9e09dce0dd84cf8dd11eb1e9 Mon Sep 17 00:00:00 2001 From: Paolo Date: Fri, 30 Jun 2017 13:28:24 +0200 Subject: [PATCH] - Added new constants that represent the exit codes for the UDF validation - Added new error messages for the UDF validation --- application/config/constants.php | 1 + application/language/de-AT/fhc_model_lang.php | 3 ++- application/language/en-US/fhc_model_lang.php | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/application/config/constants.php b/application/config/constants.php index 7e910087e..68a5261e7 100755 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -108,6 +108,7 @@ define('EXIT_VALIDATION_UDF_MIN_LENGTH', 13); // UDF validation has been failed define('EXIT_VALIDATION_UDF_MAX_LENGTH', 14); // UDF validation has been failed -> MAX LENGTH define('EXIT_VALIDATION_UDF_REGEX', 15); // UDF validation has been failed -> REGEX define('EXIT_VALIDATION_UDF_REQUIRED', 16); // UDF validation has been failed -> REQUIRED +define('EXIT_VALIDATION_UDF_NOT_VALID_VAL', 17); // UDF validation has been failed -> Not valid value, object or array define('EXIT_AUTO_MIN', 1000); // lowest automatically-assigned error code define('EXIT_AUTO_MAX', 2000); // highest automatically-assigned error code \ No newline at end of file diff --git a/application/language/de-AT/fhc_model_lang.php b/application/language/de-AT/fhc_model_lang.php index 27c444f77..8d030c940 100644 --- a/application/language/de-AT/fhc_model_lang.php +++ b/application/language/de-AT/fhc_model_lang.php @@ -12,4 +12,5 @@ $lang['fhc_'.EXIT_VALIDATION_UDF_MAX_VALUE] = 'UDF validation has been failed - $lang['fhc_'.EXIT_VALIDATION_UDF_MIN_LENGTH] = 'UDF validation has been failed - MIN LENGTH'; $lang['fhc_'.EXIT_VALIDATION_UDF_MAX_LENGTH] = 'UDF validation has been failed - MAX LENGTH'; $lang['fhc_'.EXIT_VALIDATION_UDF_REGEX] = 'UDF validation has been failed - REGEX'; -$lang['fhc_'.EXIT_VALIDATION_UDF_REQUIRED] = 'UDF validation has been failed - REQUIRED'; \ No newline at end of file +$lang['fhc_'.EXIT_VALIDATION_UDF_REQUIRED] = 'UDF validation has been failed - REQUIRED'; +$lang['fhc_'.EXIT_VALIDATION_UDF_NOT_VALID_VAL] = 'UDF validation has been failed - Not valid value, object or array given'; \ No newline at end of file diff --git a/application/language/en-US/fhc_model_lang.php b/application/language/en-US/fhc_model_lang.php index c000598a6..406d5da4b 100644 --- a/application/language/en-US/fhc_model_lang.php +++ b/application/language/en-US/fhc_model_lang.php @@ -6,3 +6,11 @@ if ( ! defined('BASEPATH')) $lang['fhc_'.FHC_MODEL_ERROR] = 'Error in Model'; $lang['fhc_'.FHC_NODBTABLE] = 'dbTable is not set!'; $lang['fhc_'.FHC_NORIGHT] = 'rights are missing!'; +$lang['fhc_'.EXIT_VALIDATION_UDF] = 'UDF validation has been failed'; +$lang['fhc_'.EXIT_VALIDATION_UDF_MIN_VALUE] = 'UDF validation has been failed - MIN VALUE'; +$lang['fhc_'.EXIT_VALIDATION_UDF_MAX_VALUE] = 'UDF validation has been failed - MAX VALUE'; +$lang['fhc_'.EXIT_VALIDATION_UDF_MIN_LENGTH] = 'UDF validation has been failed - MIN LENGTH'; +$lang['fhc_'.EXIT_VALIDATION_UDF_MAX_LENGTH] = 'UDF validation has been failed - MAX LENGTH'; +$lang['fhc_'.EXIT_VALIDATION_UDF_REGEX] = 'UDF validation has been failed - REGEX'; +$lang['fhc_'.EXIT_VALIDATION_UDF_REQUIRED] = 'UDF validation has been failed - REQUIRED'; +$lang['fhc_'.EXIT_VALIDATION_UDF_NOT_VALID_VAL] = 'UDF validation has been failed - Not valid value, object or array given'; \ No newline at end of file