コード例 #1
0
 function __construct($dbPath)
 {
     $this->dbVersion = 2;
     if ($dbPath == ':memory:') {
         $this->readOnly = false;
     } else {
         $this->readOnly = !is_writable($dbPath);
     }
     parent::__construct($dbPath);
     $this->connect($dbPath);
 }
コード例 #2
0
 function __construct($dbPath)
 {
     $this->dbVersion = 3;
     if ($dbPath == ':memory:') {
         $this->readOnly = false;
     } else {
         $this->readOnly = !is_writable($dbPath);
     }
     parent::__construct($dbPath);
     if (class_exists('PDO') && $this->connect($dbPath)) {
         return $this->connId;
     } else {
         $this->getError();
         return false;
     }
 }