Translated using Weblate (Japanese)
[phpmyadmin.git] / tbl_structure.php
blobf2170ee4599a38cac9ee9594607f962622687a9c
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays table structure infos like columns, indexes, size, rows
5 * and allows manipulation of indexes and columns
7 * @package PhpMyAdmin
8 */
10 namespace PMA;
12 use PMA\libraries\controllers\table\TableStructureController;
13 use PMA\libraries\Response;
15 require_once 'libraries/common.inc.php';
16 require_once 'libraries/tbl_info.inc.php';
17 require_once 'libraries/config/messages.inc.php';
18 require_once 'libraries/config/user_preferences.forms.php';
19 require_once 'libraries/config/page_settings.forms.php';
21 $container = libraries\di\Container::getDefaultContainer();
22 $container->factory('PMA\libraries\controllers\table\TableStructureController');
23 $container->alias(
24 'TableStructureController',
25 'PMA\libraries\controllers\table\TableStructureController'
27 $container->set('PMA\libraries\Response', Response::getInstance());
28 $container->alias('response', 'PMA\libraries\Response');
30 global $db, $table, $db_is_system_schema, $tbl_is_view, $tbl_storage_engine,
31 $table_info_num_rows, $tbl_collation, $showtable;
32 /* Define dependencies for the concerned controller */
33 $dependency_definitions = array(
34 'db' => $db,
35 'table' => $table,
36 'url_query' => &$GLOBALS['url_query'],
37 'db_is_system_schema' => $db_is_system_schema,
38 'tbl_is_view' => $tbl_is_view,
39 'tbl_storage_engine' => $tbl_storage_engine,
40 'table_info_num_rows' => $table_info_num_rows,
41 'tbl_collation' => $tbl_collation,
42 'showtable' => $showtable
45 /** @var TableStructureController $controller */
46 $controller = $container->get('TableStructureController', $dependency_definitions);
47 $controller->indexAction();