aboutsummaryrefslogtreecommitdiff
path: root/classes/CinisisDb.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/CinisisDb.php')
-rw-r--r--classes/CinisisDb.php12
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));