aboutsummaryrefslogtreecommitdiff
path: root/classes/CinisisDb.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-23 11:34:06 -0300
committerSilvio <silvio@devlet.com.br>2010-07-23 11:34:06 -0300
commit746f86a86cb03527ba1d4e695314d7654ecd0766 (patch)
tree632982af2da59d017218863e24ca83e7376549cc /classes/CinisisDb.php
parentd2c3ddb951e61dba1cdd95664843f05e425ff9b9 (diff)
downloadcinisis-746f86a86cb03527ba1d4e695314d7654ecd0766.tar.gz
cinisis-746f86a86cb03527ba1d4e695314d7654ecd0766.tar.bz2
Adding open method at CinisisDb
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));