config : getAll function : return all the defined parameters

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2168 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-05-12 12:09:21 +00:00
parent 5c6efd369e
commit 78d2d5e4ca

View File

@@ -48,6 +48,16 @@ class config
return $this->default;
}
/** Return the defined values */
public function getAll ()
{
$conf = array ();
$rc = include ($this->confFile);
if ($rc !== 1)
throw new Exception ("Error in configuration file");
return $conf;
}
/** Get the value of the provided parameter recorded in .php file
If it is not set in .php file, use the default value
@param string $param The option name to be returned */