public static function connect()
 {
     $result = false;
     try {
         self::$_dbh = PDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3', null, null, null, null, 'SQLite3');
         self::$_dbh->exec('create table if not exists error_log ( timestamp int, message text );');
         $result = true;
     } catch (\Exception $e) {
         trigger_error($e->getMessage());
     }
     return $result;
 }
Example #2
0
 public static function connect()
 {
     self::$_dbh = DatabasePDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3', null, null, null, null, 'SQLite3');
     self::$_dbh->exec('create table if not exists error_log ( timestamp int, message text );');
 }
Example #3
0
 public static function connect()
 {
     self::$_resource = new \SQLite3(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3');
     self::$_resource->exec('create table if not exists error_log ( timestamp int, message text );');
 }