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
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class.database_base.php
|
* class.database_base.php
|
||||||
|
*
|
||||||
* @package gulliver.system
|
* @package gulliver.system
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
@@ -26,20 +28,29 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* interface iDatabase
|
* interface iDatabase
|
||||||
|
*
|
||||||
* @package gulliver.system
|
* @package gulliver.system
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface iDatabase {
|
interface iDatabase
|
||||||
public function generateDropTableSQL($sTable);
|
{
|
||||||
public function generateCreateTableSQL($sTable, $aColumns);
|
|
||||||
public function generateDropColumnSQL($sTable, $sColumn);
|
public function generateDropTableSQL ($sTable);
|
||||||
public function generateAddColumnSQL($sTable, $sColumn, $aParameters);
|
|
||||||
public function generateChangeColumnSQL($sTable, $sColumn, $aParameters);
|
public function generateCreateTableSQL ($sTable, $aColumns);
|
||||||
public function close();
|
|
||||||
|
public function generateDropColumnSQL ($sTable, $sColumn);
|
||||||
|
|
||||||
|
public function generateAddColumnSQL ($sTable, $sColumn, $aParameters);
|
||||||
|
|
||||||
|
public function generateChangeColumnSQL ($sTable, $sColumn, $aParameters);
|
||||||
|
|
||||||
|
public function close ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class database_base
|
* class database_base
|
||||||
|
*
|
||||||
* @package gulliver.system
|
* @package gulliver.system
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
@@ -56,6 +67,7 @@ class database_base implements iDatabase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Function __construct
|
* Function __construct
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sType
|
* @param string $sType
|
||||||
* @param string $sServer
|
* @param string $sServer
|
||||||
@@ -65,7 +77,7 @@ class database_base implements iDatabase
|
|||||||
* @return void
|
* @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->sType = $sType;
|
||||||
$this->sServer = $sServer;
|
$this->sServer = $sServer;
|
||||||
@@ -78,11 +90,12 @@ class database_base implements iDatabase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sTable
|
* @param string $sTable
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function generateDropTableSQL($sTable)
|
public function generateDropTableSQL ($sTable)
|
||||||
{
|
{
|
||||||
$sSQL = 'DROP TABLE IF EXISTS ' . $this->sQuoteCharacter . $sTable . $this->sQuoteCharacter . $this->sEndLine;
|
$sSQL = 'DROP TABLE IF EXISTS ' . $this->sQuoteCharacter . $sTable . $this->sQuoteCharacter . $this->sEndLine;
|
||||||
return $sSQL;
|
return $sSQL;
|
||||||
@@ -90,66 +103,73 @@ class database_base implements iDatabase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sTable
|
* @param string $sTable
|
||||||
* @param string $sColumn
|
* @param string $sColumn
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateCreateTableSQL($sTable, $aColumns)
|
public function generateCreateTableSQL ($sTable, $aColumns)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sTable
|
* @param string $sTable
|
||||||
* @param string $sColumn
|
* @param string $sColumn
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateDropColumnSQL($sTable, $sColumn)
|
public function generateDropColumnSQL ($sTable, $sColumn)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sTable
|
* @param string $sTable
|
||||||
* @param string $sColumn
|
* @param string $sColumn
|
||||||
* @param string $aParameters
|
* @param string $aParameters
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateAddColumnSQL($sTable, $sColumn, $aParameters)
|
public function generateAddColumnSQL ($sTable, $sColumn, $aParameters)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sTable
|
* @param string $sTable
|
||||||
* @param string $sColumn
|
* @param string $sColumn
|
||||||
* @param string $aParameters
|
* @param string $aParameters
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateChangeColumnSQL($sTable, $sColumn, $aParameters)
|
public function generateChangeColumnSQL ($sTable, $sColumn, $aParameters)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $sQuery
|
* @param string $sQuery
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function executeQuery($sQuery)
|
public function executeQuery ($sQuery)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function close
|
* Function close
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function close()
|
public function close ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user