NOISSUE, change some code for php5

This commit is contained in:
ngleader 2013-11-25 20:38:50 +09:00
parent be662c8c2a
commit f8af9ef6ce
6 changed files with 18 additions and 97 deletions

View file

@ -50,6 +50,8 @@ if(!defined('__XE_LOADED_DB_CLASS__'))
class DB
{
static $isSupported = FALSE;
/**
* priority of DBMS
* @var array
@ -385,7 +387,7 @@ class DB
*/
function isSupported()
{
return FALSE;
return self::$isSupported;
}
/**
@ -805,46 +807,6 @@ class DB
return TRUE;
}
/**
* Returns supported database list
* @return array list of supported database
*/
function getSupportedDatabase()
{
$result = array();
if(function_exists('mysql_connect'))
{
$result[] = 'MySQL';
}
if(function_exists('cubrid_connect'))
{
$result[] = 'Cubrid';
}
if(function_exists('ibase_connect'))
{
$result[] = 'FireBird';
}
if(function_exists('pg_connect'))
{
$result[] = 'Postgre';
}
if(function_exists('sqlite_open'))
{
$result[] = 'sqlite2';
}
if(function_exists('mssql_connect'))
{
$result[] = 'MSSQL';
}
if(function_exists('PDO'))
{
$result[] = 'sqlite3(PDO)';
}
return $result;
}
/**
* Drop tables
* @param string $table_name