git-svn-id: http://xe-core.googlecode.com/svn/trunk@1628 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-14 06:05:26 +00:00
parent 3f649ab32a
commit 67572cebaf
39 changed files with 543 additions and 459 deletions

View file

@ -82,6 +82,9 @@
// 구해진 클래스의 객체 생성후 isSupported method를 통해 지원 여부를 판단
for($i=0;$i<count($supported_list);$i++) {
$db_type = $supported_list[$i];
if(version_compare(phpversion(), '5.0') < 0 && eregi('pdo',$db_type)) continue;
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type,0,1)), strtolower(substr($db_type,1)));
$class_file = sprintf("./classes/db/%s.class.php", $class_name);
if(!file_exists($class_file)) continue;

View file

@ -47,7 +47,8 @@
* @brief 설치 가능 여부를 return
**/
function isSupported() {
if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
//if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
if(!function_exists('mysql_connect')) return false;
return true;
}

View file

@ -47,7 +47,8 @@
* @brief 설치 가능 여부를 return
**/
function isSupported() {
if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
//if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
if(!function_exists('mysql_connect')) return false;
return true;
}

View file

@ -152,7 +152,7 @@
/**
* @ 실행된 모듈의 컨텐츠를 출력
**/
function displayContent(&$oModule = NULL) {
function displayContent($oModule = NULL) {
// 설정된 모듈이 정상이지 않을 경우 message 모듈 객체 생성
if(!$oModule || !is_object($oModule)) {
$this->error = 'msg_module_is_not_exists';

View file

@ -63,7 +63,10 @@
* @brief 추가된 변수의 key, value들을 추가
**/
function adds($object) {
if( (is_object($object) && count(array_keys($object))) || (is_array($object) && count($object))) {
if(is_object($object)) {
$vars = get_object_vars($object);
foreach($vars as $key => $val) $this->add($key, $val);
} elseif(is_array($object)) {
foreach($object as $key => $val) $this->add($key, $val);
}
}