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
This commit is contained in:
2014-03-22 12:28:17 +00:00
parent 32835b4d7c
commit 4fa807a992

View File

@@ -17,6 +17,13 @@ class config
// the informations by adding a killing feature in // the informations by adding a killing feature in
// the file // 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 /** Get the value of the provided parameter recorded in .ini file
If it is not set in .ini file, use the default value */ If it is not set in .ini file, use the default value */
public function get ($param) public function get ($param)