Merge pull request #567 from kijin/pr/session-class

세션 처리 관련 기능 정리 및 개선
This commit is contained in:
Kijin Sung 2017-02-10 21:30:06 +09:00 committed by GitHub
commit 99cb67b5db
33 changed files with 1934 additions and 353 deletions

View file

@ -956,6 +956,29 @@ class DBCubrid extends DB
}
}
/**
* Drop table
*
* @param string $name
* @return bool
*/
function dropTable($table_name)
{
// Generate the drop query
$query = sprintf('drop class "%s"', $this->addQuotes($this->prefix . $table_name));
// Execute the drop query
$output = $this->_query($query);
if($output)
{
return true;
}
else
{
return false;
}
}
/**
* Handles insertAct
* @param Object $queryObject

View file

@ -748,6 +748,29 @@ class DBMssql extends DB
}
}
/**
* Drop table
*
* @param string $name
* @return bool
*/
function dropTable($table_name)
{
// Generate the drop query
$query = sprintf('DROP TABLE %s', $this->addQuotes($this->prefix . $table_name));
// Execute the drop query
$output = $this->_query($query);
if($output)
{
return true;
}
else
{
return false;
}
}
/**
* Handles insertAct
* @todo Lookup _filterNumber against sql injection - see if it is still needed and how to integrate

View file

@ -682,6 +682,29 @@ class DBMysql extends DB
}
}
/**
* Drop table
*
* @param string $name
* @return bool
*/
function dropTable($table_name)
{
// Generate the drop query
$query = sprintf('DROP TABLE `%s`', $this->addQuotes($this->prefix . $table_name));
// Execute the drop query
$output = $this->_query($query);
if($output)
{
return true;
}
else
{
return false;
}
}
/**
* Handles insertAct
* @param Object $queryObject