2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Schema export handler
8 declare(strict_types
=1);
10 use PhpMyAdmin\Export
;
11 use PhpMyAdmin\Relation
;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
18 require_once ROOT_PATH
. 'libraries/common.inc.php';
21 * get all variables needed for exporting relational schema
24 /** @var Relation $relation */
25 $relation = $containerBuilder->get('relation');
26 $cfgRelation = $relation->getRelationsParam();
28 if (! isset($_REQUEST['export_type'])) {
29 Util
::checkParameters(['export_type']);
33 * Include the appropriate Schema Class depending on $export_type
36 /** @var Export $export */
37 $export = $containerBuilder->get('export');
38 $export->processExportSchema($_REQUEST['export_type']);