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-08-10 12:39:17 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-08-10 12:39:17 +0300
commita599b615341e605fd9b47cd00bac70e171eb7954 (patch)
tree84b5df111f490c2a52e8abd152f90163bb75b986 /db_structure.php
parent4e2310d5462d271027d381ec1603647c92d7c00c (diff)
Create separate controllers from table and database structure pages
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'db_structure.php')
-rw-r--r--db_structure.php20
1 files changed, 6 insertions, 14 deletions
diff --git a/db_structure.php b/db_structure.php
index 4883c7f641..9d24d0d780 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -12,34 +12,26 @@ require_once 'libraries/common.inc.php';
require_once 'libraries/db_common.inc.php';
require_once 'libraries/db_info.inc.php';
require_once 'libraries/di/Container.class.php';
-require_once 'libraries/controllers/StructureController.class.php';
+require_once 'libraries/controllers/DatabaseStructureController.class.php';
$container = DI\Container::getDefaultContainer();
-$container->factory('PMA\Controllers\StructureController');
+$container->factory('PMA\Controllers\DatabaseStructureController');
$container->alias(
- 'StructureController', 'PMA\Controllers\StructureController'
+ 'DatabaseStructureController', 'PMA\Controllers\DatabaseStructureController'
);
-global $db, $table, $pos, $db_is_system_schema, $total_num_tables, $tables,
- $num_tables, $tbl_is_view, $tbl_storage_engine, $table_info_num_rows, $tbl_collation, $showtable;
+global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables;
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
'db' => $db,
- 'table' => $table,
- 'type' => 'db',
'url_query' => &$GLOBALS['url_query'],
'pos' => $pos,
'db_is_system_schema' => $db_is_system_schema,
'num_tables' => $num_tables,
'total_num_tables' => $total_num_tables,
'tables' => $tables,
- 'tbl_is_view' => $tbl_is_view,
- 'tbl_storage_engine' => $tbl_storage_engine,
- 'table_info_num_rows' => $table_info_num_rows,
- 'tbl_collation' => $tbl_collation,
- 'showtable' => $showtable
);
-/** @var Controllers\StructureController $controller */
-$controller = $container->get('StructureController', $dependency_definitions);
+/** @var Controllers\DatabaseStructureController $controller */
+$controller = $container->get('DatabaseStructureController', $dependency_definitions);
$controller->indexAction();