schema_export.php 653 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Schema export handler
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Export;
  9. use PhpMyAdmin\Relation;
  10. use PhpMyAdmin\Util;
  11. /**
  12. * Gets some core libraries
  13. */
  14. require_once 'libraries/common.inc.php';
  15. /**
  16. * get all variables needed for exporting relational schema
  17. * in $cfgRelation
  18. */
  19. $relation = new Relation();
  20. $cfgRelation = $relation->getRelationsParam();
  21. if (! isset($_POST['export_type'])) {
  22. Util::checkParameters(array('export_type'));
  23. }
  24. /**
  25. * Include the appropriate Schema Class depending on $export_type
  26. * default is PDF
  27. */
  28. Export::processExportSchema($_POST['export_type']);