mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Merge pull request #567 from kijin/pr/session-class
세션 처리 관련 기능 정리 및 개선
This commit is contained in:
commit
99cb67b5db
33 changed files with 1934 additions and 353 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue