diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-23 11:34:06 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-23 11:34:06 -0300 |
commit | 746f86a86cb03527ba1d4e695314d7654ecd0766 (patch) | |
tree | 632982af2da59d017218863e24ca83e7376549cc | |
parent | d2c3ddb951e61dba1cdd95664843f05e425ff9b9 (diff) | |
download | cinisis-746f86a86cb03527ba1d4e695314d7654ecd0766.tar.gz cinisis-746f86a86cb03527ba1d4e695314d7654ecd0766.tar.bz2 |
Adding open method at CinisisDb
-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)); |