These settings are no longer required as they are guaranteed through other coding standard tools. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
38 lines
747 B
PHP
38 lines
747 B
PHP
<?php
|
|
/**
|
|
* Schema export handler
|
|
*
|
|
* @package PhpMyAdmin
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use PhpMyAdmin\Export;
|
|
use PhpMyAdmin\Relation;
|
|
use PhpMyAdmin\Util;
|
|
|
|
if (! defined('PHPMYADMIN')) {
|
|
exit;
|
|
}
|
|
|
|
global $containerBuilder;
|
|
|
|
/**
|
|
* get all variables needed for exporting relational schema
|
|
* in $cfgRelation
|
|
*/
|
|
/** @var Relation $relation */
|
|
$relation = $containerBuilder->get('relation');
|
|
$cfgRelation = $relation->getRelationsParam();
|
|
|
|
if (! isset($_POST['export_type'])) {
|
|
Util::checkParameters(['export_type']);
|
|
}
|
|
|
|
/**
|
|
* Include the appropriate Schema Class depending on $export_type
|
|
* default is PDF
|
|
*/
|
|
/** @var Export $export */
|
|
$export = $containerBuilder->get('export');
|
|
$export->processExportSchema($_POST['export_type']);
|