diff --git a/config.php b/config.php index 5dd5eb8..142a72a 100644 --- a/config.php +++ b/config.php @@ -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 */