mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@953 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
13103f0049
commit
47047b01b5
2 changed files with 6 additions and 7 deletions
|
|
@ -2,16 +2,17 @@
|
||||||
/**
|
/**
|
||||||
* @class DBMysqli
|
* @class DBMysqli
|
||||||
* @author zero (zero@nzeo.com)
|
* @author zero (zero@nzeo.com)
|
||||||
* @brief MySQL DBMS를 이용하기 위한 class
|
* @brief MySQLi DBMS를 이용하기 위한 class
|
||||||
* @version 0.1
|
* @version 0.1
|
||||||
|
* @todo mysqli 미구현 (mysql과 같은 처리..)
|
||||||
*
|
*
|
||||||
* mysql handling class
|
* mysqli의 prepare, bind param등을 사용하려고 만들었으나....
|
||||||
|
* 문제는 bind_param 시에 mixed var를 eval이 아닌 방법으로 구현할 방법을 찾지 못했음.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class DBMysqli extends DB {
|
class DBMysqli extends DB {
|
||||||
|
|
||||||
var $handler = null;
|
var $handler = null;
|
||||||
var $stmt = null;
|
|
||||||
|
|
||||||
var $hostname = '127.0.0.1'; ///< hostname
|
var $hostname = '127.0.0.1'; ///< hostname
|
||||||
var $userid = NULL; ///< user id
|
var $userid = NULL; ///< user id
|
||||||
|
|
@ -110,7 +111,6 @@
|
||||||
|
|
||||||
if($this->handler->error) {
|
if($this->handler->error) {
|
||||||
$this->setError($this->handler->errno, $this->handler->error);
|
$this->setError($this->handler->errno, $this->handler->error);
|
||||||
$this->stmt = null;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -136,7 +136,7 @@
|
||||||
function getNextSequence() {
|
function getNextSequence() {
|
||||||
$query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix);
|
$query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix);
|
||||||
$this->_query($query);
|
$this->_query($query);
|
||||||
return mysql_insert_id();
|
return $this->handler->insert_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@
|
||||||
if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed');
|
if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed');
|
||||||
|
|
||||||
// 모든 모듈의 설치
|
// 모든 모듈의 설치
|
||||||
$output = $this->installDownloadedModule();
|
$this->installDownloadedModule();
|
||||||
if(!$output->toBool()) return $output;
|
|
||||||
|
|
||||||
// config 파일 생성
|
// config 파일 생성
|
||||||
if(!$this->makeConfigFile()) return new Object(-1, 'msg_install_failed');
|
if(!$this->makeConfigFile()) return new Object(-1, 'msg_install_failed');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue