final class Export (View source)

Export defaults

Properties

string $format
$cfg['Export']['format'] = 'sql';
string $method
$cfg['Export']['method'] = 'quick';
string $compression
$cfg['Export']['compression'] = 'none';
bool $lock_tables

Whether to LOCK TABLES before exporting

bool $as_separate_files

Whether to export databases/tables as separate files

bool $asfile
$cfg['Export']['asfile'] = true;
string $charset
$cfg['Export']['charset'] = '';
bool $onserver
$cfg['Export']['onserver'] = false;
bool $onserver_overwrite
$cfg['Export']['onserver_overwrite'] = false;
bool $quick_export_onserver
$cfg['Export']['quick_export_onserver'] = false;
bool $quick_export_onserver_overwrite
$cfg['Export']['quick_export_onserver_overwrite'] = false;
bool $remember_file_template
$cfg['Export']['remember_file_template'] = true;
string $file_template_table

Default filename template for table exports.

string $file_template_database

Default filename template for database exports.

string $file_template_server

Default filename template for server exports.

string $codegen_structure_or_data
$cfg['Export']['codegen_structure_or_data'] = 'data';
int $codegen_format
$cfg['Export']['codegen_format'] = 0;
bool $ods_columns
$cfg['Export']['ods_columns'] = false;
string $ods_null
$cfg['Export']['ods_null'] = 'NULL';
string $odt_structure_or_data
$cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
bool $odt_columns
$cfg['Export']['odt_columns'] = true;
bool $odt_relation
$cfg['Export']['odt_relation'] = true;
bool $odt_comments
$cfg['Export']['odt_comments'] = true;
bool $odt_mime
$cfg['Export']['odt_mime'] = true;
string $odt_null
$cfg['Export']['odt_null'] = 'NULL';
string $htmlword_structure_or_data
$cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
bool $htmlword_columns
$cfg['Export']['htmlword_columns'] = false;
string $htmlword_null
$cfg['Export']['htmlword_null'] = 'NULL';
string $texytext_structure_or_data
$cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
bool $texytext_columns
$cfg['Export']['texytext_columns'] = false;
string $texytext_null
$cfg['Export']['texytext_null'] = 'NULL';
bool $csv_columns
$cfg['Export']['csv_columns'] = true;
string $csv_structure_or_data
$cfg['Export']['csv_structure_or_data'] = 'data';
string $csv_null
$cfg['Export']['csv_null'] = 'NULL';
string $csv_separator
$cfg['Export']['csv_separator'] = ',';
string $csv_enclosed
$cfg['Export']['csv_enclosed'] = '"';
string $csv_escaped
$cfg['Export']['csv_escaped'] = '"';
string $csv_terminated
$cfg['Export']['csv_terminated'] = 'AUTO';
bool $csv_removeCRLF
$cfg['Export']['csv_removeCRLF'] = false;
bool $excel_columns
$cfg['Export']['excel_columns'] = true;
string $excel_null
$cfg['Export']['excel_null'] = 'NULL';
string $excel_edition
$cfg['Export']['excel_edition'] = 'win';
bool $excel_removeCRLF
$cfg['Export']['excel_removeCRLF'] = false;
string $excel_structure_or_data
$cfg['Export']['excel_structure_or_data'] = 'data';
string $latex_structure_or_data
$cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
bool $latex_columns
$cfg['Export']['latex_columns'] = true;
bool $latex_relation
$cfg['Export']['latex_relation'] = true;
bool $latex_comments
$cfg['Export']['latex_comments'] = true;
bool $latex_mime
$cfg['Export']['latex_mime'] = true;
string $latex_null
$cfg['Export']['latex_null'] = '\textit{NULL}';
bool $latex_caption
$cfg['Export']['latex_caption'] = true;
string $latex_structure_caption
$cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
string $latex_structure_continued_caption
$cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
string $latex_data_caption
$cfg['Export']['latex_data_caption'] = 'strLatexContent';
string $latex_data_continued_caption
$cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
string $latex_data_label
$cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
string $latex_structure_label
$cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
string $mediawiki_structure_or_data
$cfg['Export']['mediawiki_structure_or_data'] = 'data';
bool $mediawiki_caption
$cfg['Export']['mediawiki_caption'] = true;
bool $mediawiki_headers
$cfg['Export']['mediawiki_headers'] = true;
string $ods_structure_or_data
$cfg['Export']['ods_structure_or_data'] = 'data';
string $pdf_structure_or_data
$cfg['Export']['pdf_structure_or_data'] = 'data';
string $phparray_structure_or_data
$cfg['Export']['phparray_structure_or_data'] = 'data';
string $json_structure_or_data
$cfg['Export']['json_structure_or_data'] = 'data';
bool $json_pretty_print
$cfg['Export']['json_pretty_print'] = false;
bool $json_unicode
$cfg['Export']['json_unicode'] = true;
string $sql_structure_or_data
$cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
string $sql_compatibility
$cfg['Export']['sql_compatibility'] = 'NONE';
bool $sql_include_comments

Whether to include comments in SQL export.

bool $sql_disable_fk
$cfg['Export']['sql_disable_fk'] = false;
bool $sql_views_as_tables
$cfg['Export']['sql_views_as_tables'] = false;
bool $sql_metadata
$cfg['Export']['sql_metadata'] = false;
bool $sql_use_transaction
$cfg['Export']['sql_use_transaction'] = true;
bool $sql_create_database
$cfg['Export']['sql_create_database'] = false;
bool $sql_drop_database
$cfg['Export']['sql_drop_database'] = false;
bool $sql_drop_table
$cfg['Export']['sql_drop_table'] = false;
bool $sql_if_not_exists

true by default for correct behavior when dealing with exporting of VIEWs and the stand-in table

bool $sql_view_current_user
$cfg['Export']['sql_view_current_user'] = false;
bool $sql_or_replace_view
$cfg['Export']['sql_or_replace_view'] = false;
bool $sql_procedure_function
$cfg['Export']['sql_procedure_function'] = true;
bool $sql_create_table
$cfg['Export']['sql_create_table'] = true;
bool $sql_create_view
$cfg['Export']['sql_create_view'] = true;
bool $sql_create_trigger
$cfg['Export']['sql_create_trigger'] = true;
bool $sql_auto_increment
$cfg['Export']['sql_auto_increment'] = true;
bool $sql_backquotes
$cfg['Export']['sql_backquotes'] = true;
bool $sql_dates
$cfg['Export']['sql_dates'] = false;
bool $sql_relation
$cfg['Export']['sql_relation'] = false;
bool $sql_truncate
$cfg['Export']['sql_truncate'] = false;
bool $sql_delayed
$cfg['Export']['sql_delayed'] = false;
bool $sql_ignore
$cfg['Export']['sql_ignore'] = false;
bool $sql_utc_time

Export time in UTC.

bool $sql_hex_for_binary
$cfg['Export']['sql_hex_for_binary'] = true;
string $sql_type
$cfg['Export']['sql_type'] = 'INSERT';
int $sql_max_query_size
$cfg['Export']['sql_max_query_size'] = 50000;
bool $sql_mime
$cfg['Export']['sql_mime'] = false;
string $sql_header_comment

\n is replaced by new line

string $sql_insert_syntax

Whether to use complete inserts, extended inserts, both, or neither

string $pdf_report_title
$cfg['Export']['pdf_report_title'] = '';
string $xml_structure_or_data
$cfg['Export']['xml_structure_or_data'] = 'data';
bool $xml_export_struc

Export schema for each structure

bool $xml_export_events

Export events

bool $xml_export_functions

Export functions

bool $xml_export_procedures

Export procedures

bool $xml_export_tables

Export schema for each table

bool $xml_export_triggers

Export triggers

bool $xml_export_views

Export views

bool $xml_export_contents

Export contents data

string $yaml_structure_or_data
$cfg['Export']['yaml_structure_or_data'] = 'data';
bool $remove_definer_from_definitions
$cfg['Export']['remove_definer_from_definitions'] = false;

Methods

__construct(array $export = [])

No description

array
asArray()

No description

Details

__construct(array $export = [])

No description

Parameters

array $export

array asArray()

No description

Return Value

array