From 4fa807a9927ca21f6a2a7e7d3a9ea4a27de33954 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 22 Mar 2014 12:28:17 +0000 Subject: [PATCH] Add the possibility to display all the params available in the configuration with their default value git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1231 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- config.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.php b/config.php index b26be3b..3c896a9 100644 --- a/config.php +++ b/config.php @@ -17,6 +17,13 @@ class config // the informations by adding a killing feature in // the file + /** List all the parameters configurable in the software */ + public function params () + { + return print_r ($this->default, TRUE); + + } + /** Get the value of the provided parameter recorded in .ini file If it is not set in .ini file, use the default value */ public function get ($param)