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:
10
config.php
10
config.php
@@ -48,6 +48,16 @@ class config
|
|||||||
return $this->default;
|
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
|
/** Get the value of the provided parameter recorded in .php file
|
||||||
If it is not set in .php file, use the default value
|
If it is not set in .php file, use the default value
|
||||||
@param string $param The option name to be returned */
|
@param string $param The option name to be returned */
|
||||||
|
|||||||
Reference in New Issue
Block a user