From 746f86a86cb03527ba1d4e695314d7654ecd0766 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 23 Jul 2010 11:34:06 -0300 Subject: Adding open method at CinisisDb --- classes/CinisisDb.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/classes/CinisisDb.php b/classes/CinisisDb.php index 5d58685..32f0a28 100644 --- a/classes/CinisisDb.php +++ b/classes/CinisisDb.php @@ -24,6 +24,18 @@ class CinisisDb { * with configuration. */ function __construct($config = NULL) { + $this->open($config); + } + + /** + * Open an ISIS database. + * + * @param $config + * Optional parameter to set alternative config file or array + * with configuration. + */ + public function open($config) + { try { // Check main configuration. $config = $this->parse($this->file($config)); -- cgit v1.2.3