From 234e64496d05412ff2ed006407094de835e08b25 Mon Sep 17 00:00:00 2001 From: machaonix Date: Mon, 29 Nov 2021 22:25:20 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9organisation=20du=20r=C3=A9pertoir=20et?= =?UTF-8?q?=20cdration=20d'un=20fichier=20dsn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/Validation.php | 40 ++++++++++++++++++++++++++++++++++++++++ config/dsn.php | 5 +++++ 2 files changed, 45 insertions(+) create mode 100644 config/Validation.php create mode 100644 config/dsn.php diff --git a/config/Validation.php b/config/Validation.php new file mode 100644 index 0000000..f6bc5b4 --- /dev/null +++ b/config/Validation.php @@ -0,0 +1,40 @@ + $nom, + 'commentaire' => $comm, + 'estFait' => $estFait + ); + } + + public static function validerUnIntSuperieurZero($int) + { + return filter_var($int, FILTER_VALIDATE_INT, array("min_range"=>1)); + } +} diff --git a/config/dsn.php b/config/dsn.php new file mode 100644 index 0000000..f3c1c6a --- /dev/null +++ b/config/dsn.php @@ -0,0 +1,5 @@ +