From 454157a343ced247bb70d5b28e76e618cb4e8edd Mon Sep 17 00:00:00 2001 From: Filis Futsarov Date: Mon, 9 Mar 2020 15:32:59 +0100 Subject: [PATCH 1/9] Make rules delimiters globally configurable --- gump.class.php | 55 +++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/gump.class.php b/gump.class.php index 6d4652f1..c6c4595d 100644 --- a/gump.class.php +++ b/gump.class.php @@ -53,6 +53,15 @@ public static function get_instance() return self::$instance; } + // ** ------------------------- Configuration -------------------------------- ** // + + public static $rules_delimiter = '|'; + + public static $rules_parameters_delimiter = ','; + + public static $rules_parameters_arrays_delimiter = ';'; + + // ** ------------------------- Validation Data ------------------------------- ** // public static $basic_tags = '