Remove unused parameter $db
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
95e7b6820a
commit
d862940cb3
@ -48,11 +48,9 @@ abstract class SchemaPlugin
|
||||
/**
|
||||
* Exports the schema into the specified format.
|
||||
*
|
||||
* @param string $db database name
|
||||
*
|
||||
* @return bool Whether it succeeded
|
||||
*/
|
||||
public abstract function exportSchema($db);
|
||||
public abstract function exportSchema();
|
||||
|
||||
/**
|
||||
* Adds export options common to all plugins.
|
||||
|
||||
@ -104,11 +104,9 @@ class SchemaDia extends SchemaPlugin
|
||||
/**
|
||||
* Exports the schema into DIA format.
|
||||
*
|
||||
* @param string $db database name
|
||||
*
|
||||
* @return bool Whether it succeeded
|
||||
*/
|
||||
public function exportSchema($db)
|
||||
public function exportSchema()
|
||||
{
|
||||
$export = new PMA_Dia_Relation_Schema();
|
||||
$export->showOutput();
|
||||
|
||||
@ -89,11 +89,9 @@ class SchemaEps extends SchemaPlugin
|
||||
/**
|
||||
* Exports the schema into EPS format.
|
||||
*
|
||||
* @param string $db database name
|
||||
*
|
||||
* @return bool Whether it succeeded
|
||||
*/
|
||||
public function exportSchema($db)
|
||||
public function exportSchema()
|
||||
{
|
||||
$export = new PMA_Eps_Relation_Schema();
|
||||
$export->showOutput();
|
||||
|
||||
@ -131,11 +131,9 @@ class SchemaPdf extends SchemaPlugin
|
||||
/**
|
||||
* Exports the schema into PDF format.
|
||||
*
|
||||
* @param string $db database name
|
||||
*
|
||||
* @return bool Whether it succeeded
|
||||
*/
|
||||
public function exportSchema($db)
|
||||
public function exportSchema()
|
||||
{
|
||||
$export = new PMA_Pdf_Relation_Schema();
|
||||
$export->showOutput();
|
||||
|
||||
@ -77,11 +77,9 @@ class SchemaSvg extends SchemaPlugin
|
||||
/**
|
||||
* Exports the schema into SVG format.
|
||||
*
|
||||
* @param string $db database name
|
||||
*
|
||||
* @return bool Whether it succeeded
|
||||
*/
|
||||
public function exportSchema($db)
|
||||
public function exportSchema()
|
||||
{
|
||||
$export = new PMA_Svg_Relation_Schema();
|
||||
$export->showOutput();
|
||||
|
||||
@ -60,6 +60,7 @@ function PMA_processExportSchema($export_type)
|
||||
$export_type = PMA_securePath($export_type);
|
||||
|
||||
// get the specific plugin
|
||||
/* @var $export_plugin SchemaPlugin */
|
||||
$export_plugin = PMA_getPlugin(
|
||||
"schema",
|
||||
$export_type,
|
||||
@ -72,5 +73,5 @@ function PMA_processExportSchema($export_type)
|
||||
}
|
||||
|
||||
$GLOBALS['dbi']->selectDb($GLOBALS['db']);
|
||||
$export_plugin->exportSchema($GLOBALS['db']);
|
||||
$export_plugin->exportSchema();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user