Translated using Weblate (Bulgarian)
[phpmyadmin.git] / schema_export.php
blobee265b13e86199fe4ae86717e3228587bc9d659e
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Schema export handler
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Export;
11 use PhpMyAdmin\Relation;
12 use PhpMyAdmin\Util;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
18 require_once ROOT_PATH . 'libraries/common.inc.php';
20 /**
21 * get all variables needed for exporting relational schema
22 * in $cfgRelation
24 /** @var Relation $relation */
25 $relation = $containerBuilder->get('relation');
26 $cfgRelation = $relation->getRelationsParam();
28 if (! isset($_POST['export_type'])) {
29 Util::checkParameters(['export_type']);
32 /**
33 * Include the appropriate Schema Class depending on $export_type
34 * default is PDF
36 /** @var Export $export */
37 $export = $containerBuilder->get('export');
38 $export->processExportSchema($_POST['export_type']);