Convert export to plugin architecture, so that plugins are independant piece of code (RFE #1325937).

This commit is contained in:
Michal Čihař
2006-04-26 16:33:59 +00:00
parent 29977afa0e
commit 6e17c995fb
12 changed files with 419 additions and 795 deletions

View File

@@ -6,6 +6,17 @@
* Produce a PDF report (export) from a query
*/
if (isset($plugin_list)) {
$plugin_list['pdf'] = array(
'text' => 'strPDF',
'extension' => 'pdf',
'options' => array(
array('type' => 'text', 'name' => 'report_title', 'text' => 'strPDFReportTitle'),
array('type' => 'hidden', 'name' => 'data'),
),
'options_text' => 'strPDFOptions',
);
} else {
define('FPDF_FONTPATH', './libraries/fpdf/font/');
//if ($charset == 'utf-8') {
@@ -399,4 +410,5 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
return TRUE;
} // end of the 'PMA_exportData()' function
}
?>