TCPDF: reverted back from 14b26e3
[phpmyadmin-themes.git] / handle_relation_schema.php
blob043bef28cdeae7622bc9231ff5245677cf5a6d46
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
10 * Gets some core libraries
12 require_once './libraries/common.inc.php';
13 require './libraries/StorageEngine.class.php';
15 /**
16 * Includ settings for relation stuff
17 * get all variables needed for exporting relational schema
18 * in $cfgRelation
20 require_once './libraries/relation.lib.php';
21 $cfgRelation = PMA_getRelationsParam();
23 /**
24 * Settings for relation stuff
26 require_once './libraries/transformations.lib.php';
27 require_once './libraries/Index.class.php';
29 /**
30 * This is to avoid "Command out of sync" errors. Before switching this to
31 * a value of 0 (for MYSQLI_USE_RESULT), please check the logic
32 * to free results wherever needed.
34 $query_default_option = PMA_DBI_QUERY_STORE;
36 /**
37 * get all the export options and verify
38 * call and include the appropriate Schema Class depending on $export_type
40 /**
41 * default is PDF
42 */
43 global $db,$export_type;
44 $export_type = isset($export_type) ? $export_type : 'pdf';
45 PMA_DBI_select_db($db);
47 include("./libraries/schema/".ucfirst($export_type)."_Relation_Schema.class.php");
48 $obj_schema = eval("new PMA_".ucfirst($export_type)."_Relation_Schema();");