ODE STYLE Formating gulliver/system/class.database_base.php
Change format files in gulliver/system/class.database_base.php
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* class.database_base.php
|
||||
*
|
||||
* @package gulliver.system
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
@@ -26,20 +28,29 @@
|
||||
|
||||
/**
|
||||
* interface iDatabase
|
||||
*
|
||||
* @package gulliver.system
|
||||
*/
|
||||
|
||||
interface iDatabase {
|
||||
public function generateDropTableSQL($sTable);
|
||||
public function generateCreateTableSQL($sTable, $aColumns);
|
||||
public function generateDropColumnSQL($sTable, $sColumn);
|
||||
public function generateAddColumnSQL($sTable, $sColumn, $aParameters);
|
||||
public function generateChangeColumnSQL($sTable, $sColumn, $aParameters);
|
||||
public function close();
|
||||
interface iDatabase
|
||||
{
|
||||
|
||||
public function generateDropTableSQL ($sTable);
|
||||
|
||||
public function generateCreateTableSQL ($sTable, $aColumns);
|
||||
|
||||
public function generateDropColumnSQL ($sTable, $sColumn);
|
||||
|
||||
public function generateAddColumnSQL ($sTable, $sColumn, $aParameters);
|
||||
|
||||
public function generateChangeColumnSQL ($sTable, $sColumn, $aParameters);
|
||||
|
||||
public function close ();
|
||||
}
|
||||
|
||||
/**
|
||||
* class database_base
|
||||
*
|
||||
* @package gulliver.system
|
||||
* @access public
|
||||
*/
|
||||
@@ -56,6 +67,7 @@ class database_base implements iDatabase
|
||||
|
||||
/**
|
||||
* Function __construct
|
||||
*
|
||||
* @access public
|
||||
* @param string $sType
|
||||
* @param string $sServer
|
||||
@@ -65,7 +77,7 @@ class database_base implements iDatabase
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function __construct($sType = DB_ADAPTER, $sServer = DB_HOST, $sUser = DB_USER, $sPass = DB_PASS, $sDataBase = DB_NAME)
|
||||
public function __construct ($sType = DB_ADAPTER, $sServer = DB_HOST, $sUser = DB_USER, $sPass = DB_PASS, $sDataBase = DB_NAME)
|
||||
{
|
||||
$this->sType = $sType;
|
||||
$this->sServer = $sServer;
|
||||
@@ -78,11 +90,12 @@ class database_base implements iDatabase
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sTable
|
||||
* @return string
|
||||
*/
|
||||
public function generateDropTableSQL($sTable)
|
||||
public function generateDropTableSQL ($sTable)
|
||||
{
|
||||
$sSQL = 'DROP TABLE IF EXISTS ' . $this->sQuoteCharacter . $sTable . $this->sQuoteCharacter . $this->sEndLine;
|
||||
return $sSQL;
|
||||
@@ -90,66 +103,73 @@ class database_base implements iDatabase
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sTable
|
||||
* @param string $sColumn
|
||||
* @return void
|
||||
*/
|
||||
public function generateCreateTableSQL($sTable, $aColumns)
|
||||
public function generateCreateTableSQL ($sTable, $aColumns)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sTable
|
||||
* @param string $sColumn
|
||||
* @return void
|
||||
*/
|
||||
public function generateDropColumnSQL($sTable, $sColumn)
|
||||
public function generateDropColumnSQL ($sTable, $sColumn)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sTable
|
||||
* @param string $sColumn
|
||||
* @param string $aParameters
|
||||
* @return void
|
||||
*/
|
||||
public function generateAddColumnSQL($sTable, $sColumn, $aParameters)
|
||||
public function generateAddColumnSQL ($sTable, $sColumn, $aParameters)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sTable
|
||||
* @param string $sColumn
|
||||
* @param string $aParameters
|
||||
* @return void
|
||||
*/
|
||||
public function generateChangeColumnSQL($sTable, $sColumn, $aParameters)
|
||||
public function generateChangeColumnSQL ($sTable, $sColumn, $aParameters)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Function generateDropTableSQL
|
||||
*
|
||||
* @access public
|
||||
* @param string $sQuery
|
||||
* @return void
|
||||
*/
|
||||
public function executeQuery($sQuery)
|
||||
public function executeQuery ($sQuery)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Function close
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function close()
|
||||
public function close ()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user