Moving dhtmlxGantt library to 'libraries' folder

This commit is contained in:
Manuel Cillero 2017-08-13 11:07:26 +02:00
parent dbcdde741c
commit 5e16eb66dd
162 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1,33 @@
<?php
/*
@author dhtmlx.com
@license GPL, see license.txt
*/
require_once("db_common.php");
/*! SQLite implementation of DataWrapper
**/
class SQLite3DBDataWrapper extends DBDataWrapper{
public function query($sql){
LogMaster::log($sql);
$res = $this->connection->query($sql);
if ($res === false)
throw new Exception("SQLLite - sql execution failed\n".$this->connection->lastErrorMsg());
return $res;
}
public function get_next($res){
return $res->fetchArray();
}
public function get_new_id(){
return $this->connection->lastInsertRowID();
}
public function escape($data){
return $this->connection->escapeString($data);
}
}
?>