Example #1
0
 function __construct($str)
 {
     parent::__construct();
     if (preg_match('/^([^:]+):([^\\/]+)\\/(.*)/', $str, $m)) {
         $type = $m[1];
         $host = $m[2];
         $db = $this->db = $m[3];
     }
     $this->con = sqlite_open($db);
 }