phpmyadmin/libraries/entry_points/schema_export.php
Maurício Meneghini Fauth 1a14b3e4d3 Remove vim modelines
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>
2019-09-02 09:43:21 -03:00

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']);