diff options
-rw-r--r-- | classes/CinisisDb.php | 12 |
1 files changed, 12 insertions, 0 deletions
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)); |