Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-18 11:26:12 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-18 11:26:12 +0300
commitd862940cb397cd9e69bba4d356a2e6b7b12dc3ca (patch)
treef9c3a7acb26e6248f0ff6a75becc6ad2f9e7e639
parent95e7b6820a8cc6c8d7d1e69298d389d6b297d227 (diff)
Remove unused parameter $db
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
-rw-r--r--libraries/plugins/SchemaPlugin.class.php4
-rw-r--r--libraries/plugins/schema/SchemaDia.class.php4
-rw-r--r--libraries/plugins/schema/SchemaEps.class.php4
-rw-r--r--libraries/plugins/schema/SchemaPdf.class.php4
-rw-r--r--libraries/plugins/schema/SchemaSvg.class.php4
-rw-r--r--schema_export.php3
6 files changed, 7 insertions, 16 deletions
diff --git a/libraries/plugins/SchemaPlugin.class.php b/libraries/plugins/SchemaPlugin.class.php
index c4774ef620..83d3246563 100644
--- a/libraries/plugins/SchemaPlugin.class.php
+++ b/libraries/plugins/SchemaPlugin.class.php
@@ -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.
diff --git a/libraries/plugins/schema/SchemaDia.class.php b/libraries/plugins/schema/SchemaDia.class.php
index 2b5493bcdb..3a1b5656fb 100644
--- a/libraries/plugins/schema/SchemaDia.class.php
+++ b/libraries/plugins/schema/SchemaDia.class.php
@@ -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();
diff --git a/libraries/plugins/schema/SchemaEps.class.php b/libraries/plugins/schema/SchemaEps.class.php
index c53a778a5b..9858fc708c 100644
--- a/libraries/plugins/schema/SchemaEps.class.php
+++ b/libraries/plugins/schema/SchemaEps.class.php
@@ -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();
diff --git a/libraries/plugins/schema/SchemaPdf.class.php b/libraries/plugins/schema/SchemaPdf.class.php
index 8efd7e08a7..11c603cb9e 100644
--- a/libraries/plugins/schema/SchemaPdf.class.php
+++ b/libraries/plugins/schema/SchemaPdf.class.php
@@ -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();
diff --git a/libraries/plugins/schema/SchemaSvg.class.php b/libraries/plugins/schema/SchemaSvg.class.php
index e020db06cc..70753be540 100644
--- a/libraries/plugins/schema/SchemaSvg.class.php
+++ b/libraries/plugins/schema/SchemaSvg.class.php
@@ -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();
diff --git a/schema_export.php b/schema_export.php
index 87eb060896..99f1d01f10 100644
--- a/schema_export.php
+++ b/schema_export.php
@@ -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();
}