/**
  * Called by DatabaseInstaller::getInstaller().
  */
 protected function __construct($url, $user, $pass)
 {
     parent::__construct($url, $user, $pass);
     preg_match('/:([^;]+)/', $url, $matches);
     if (count($matches) < 2) {
         throw new Exception('sqlite database must specify filename');
     }
     $this->dbfile = $matches[1];
 }
 /**
  * Called by DatabaseInstaller::getInstaller().
  */
 protected function __construct($url, $user, $pass)
 {
     parent::__construct($url, $user, $pass);
     preg_match('/dbname=([^;]+)/', $url, $matches);
     if (count($matches) < 2) {
         throw new Exception('"dbname" is required in a mysql connection url');
     }
     $this->dbname = $matches[1];
 }
Example #3
0
 public function __construct($parent)
 {
     parent::__construct($parent);
 }