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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user