getName()]]>
getName()]]>
+
+ settings[$pluginType->value][$opt])]]>
getName()]]>
+ getForce()]]>
getForce()]]>
getName()]]>
getName()]]>
getName()]]>
- getName()]]>
getName()]]>
+ getName()]]>
getName()]]>
+ getName()]]>
getName()]]>
getName()]]>
getName()]]>
+ getName()]]>
getName()]]>
getName()]]>
getName()]]>
+ getName()]]>
getName()]]>
getName()]]>
getName()]]>
+ getName()]]>
getName()]]>
getName()]]>
diff --git a/src/Plugins.php b/src/Plugins.php
index af60173f21..a084f9b3ca 100644
--- a/src/Plugins.php
+++ b/src/Plugins.php
@@ -322,7 +322,7 @@ class Plugins
$ret .= 'DROP DATABASE IF EXISTS'),
);
$subgroup->addProperty($leaf);
@@ -300,7 +300,7 @@ class ExportSql extends ExportPlugin
if (ExportPlugin::$exportType === ExportType::Database) {
$createClause = 'CREATE DATABASE / USE';
$leaf = new BoolPropertyItem(
- 'create_database',
+ 'sql_create_database',
sprintf(__('Add %s statement'), $createClause),
);
$subgroup->addProperty($leaf);
@@ -317,7 +317,7 @@ class ExportSql extends ExportPlugin
$dropClause .= ' / TRIGGER';
$leaf = new BoolPropertyItem(
- 'drop_table',
+ 'sql_drop_table',
sprintf(__('Add %s statement'), $dropClause),
);
$subgroup->addProperty($leaf);
@@ -326,13 +326,13 @@ class ExportSql extends ExportPlugin
// Add table structure option
$leaf = new BoolPropertyItem(
- 'create_table',
+ 'sql_create_table',
sprintf(__('Add %s statement'), 'CREATE TABLE'),
);
$subgroupCreateTable->setSubgroupHeader($leaf);
$leaf = new BoolPropertyItem(
- 'if_not_exists',
+ 'sql_if_not_exists',
'IF NOT EXISTS ' . __(
'(less efficient as indexes will be generated during table creation)',
),
@@ -340,7 +340,7 @@ class ExportSql extends ExportPlugin
$subgroupCreateTable->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'auto_increment',
+ 'sql_auto_increment',
sprintf(__('%s value'), 'AUTO_INCREMENT'),
);
$subgroupCreateTable->addProperty($leaf);
@@ -350,26 +350,26 @@ class ExportSql extends ExportPlugin
// Add view option
$subgroupCreateView = new OptionsPropertySubgroup();
$leaf = new BoolPropertyItem(
- 'create_view',
+ 'sql_create_view',
sprintf(__('Add %s statement'), 'CREATE VIEW'),
);
$subgroupCreateView->setSubgroupHeader($leaf);
$leaf = new BoolPropertyItem(
- 'simple_view_export',
+ 'sql_simple_view_export',
/* l10n: Allow simplifying exported view syntax to only "CREATE VIEW" */
__('Use simple view export'),
);
$subgroupCreateView->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'view_current_user',
+ 'sql_view_current_user',
__('Exclude definition of current user'),
);
$subgroupCreateView->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'or_replace_view',
+ 'sql_or_replace_view',
sprintf(__('%s view'), 'OR REPLACE'),
);
$subgroupCreateView->addProperty($leaf);
@@ -377,7 +377,7 @@ class ExportSql extends ExportPlugin
$subgroup->addProperty($subgroupCreateView);
$leaf = new BoolPropertyItem(
- 'procedure_function',
+ 'sql_procedure_function',
sprintf(
__('Add %s statement'),
'CREATE PROCEDURE / FUNCTION / EVENT',
@@ -387,7 +387,7 @@ class ExportSql extends ExportPlugin
// Add triggers option
$leaf = new BoolPropertyItem(
- 'create_trigger',
+ 'sql_create_trigger',
sprintf(__('Add %s statement'), 'CREATE TRIGGER'),
);
$subgroup->addProperty($leaf);
@@ -395,7 +395,7 @@ class ExportSql extends ExportPlugin
$structureOptions->addProperty($subgroup);
$leaf = new BoolPropertyItem(
- 'backquotes',
+ 'sql_backquotes',
__(
'Enclose table and column names with backquotes '
. '(Protects column and table names formed with'
@@ -416,7 +416,7 @@ class ExportSql extends ExportPlugin
);
$dataOptions->setForce('structure');
$leaf = new BoolPropertyItem(
- 'truncate',
+ 'sql_truncate',
__('Truncate table before insert'),
);
$dataOptions->addProperty($leaf);
@@ -424,13 +424,13 @@ class ExportSql extends ExportPlugin
// begin SQL Statements
$subgroup = new OptionsPropertySubgroup();
$leaf = new MessageOnlyPropertyItem(
- 'insert_alternatives',
+ 'sql_insert_alternatives',
__('Instead of INSERT statements, use:'),
);
$subgroup->setSubgroupHeader($leaf);
$leaf = new BoolPropertyItem(
- 'delayed',
+ 'sql_delayed',
__('INSERT DELAYED statements'),
);
$leaf->setDoc(
@@ -439,7 +439,7 @@ class ExportSql extends ExportPlugin
$subgroup->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'ignore',
+ 'sql_ignore',
__('INSERT IGNORE statements'),
);
$leaf->setDoc(
@@ -450,7 +450,7 @@ class ExportSql extends ExportPlugin
// Function to use when dumping dat
$leaf = new SelectPropertyItem(
- 'type',
+ 'sql_type',
__('Function to use when dumping data:'),
);
$leaf->setValues(
@@ -466,7 +466,7 @@ class ExportSql extends ExportPlugin
);
$subgroup->setSubgroupHeader($leaf);
$leaf = new RadioPropertyItem(
- 'insert_syntax',
+ 'sql_insert_syntax',
__('INSERT IGNORE statements'),
);
$leaf->setValues(
@@ -497,14 +497,14 @@ class ExportSql extends ExportPlugin
// Max length of query
$leaf = new NumberPropertyItem(
- 'max_query_size',
+ 'sql_max_query_size',
__('Maximal length of created query'),
);
$dataOptions->addProperty($leaf);
// Dump binary columns in hexadecimal
$leaf = new BoolPropertyItem(
- 'hex_for_binary',
+ 'sql_hex_for_binary',
__(
'Dump binary columns in hexadecimal notation (for example, "abc" becomes 0x616263)',
),
@@ -513,7 +513,7 @@ class ExportSql extends ExportPlugin
// Dump time in UTC
$leaf = new BoolPropertyItem(
- 'utc_time',
+ 'sql_utc_time',
__(
'Dump TIMESTAMP columns in UTC (enables TIMESTAMP columns'
. ' to be dumped and reloaded between servers in different'
@@ -2566,7 +2566,7 @@ class ExportSql extends ExportPlugin
}
$leaf = new SelectPropertyItem(
- 'compatibility',
+ 'sql_compatibility',
__(
'Database system or older MySQL server to maximize output compatibility with:',
),
diff --git a/src/Plugins/Export/ExportTexytext.php b/src/Plugins/Export/ExportTexytext.php
index e9f02052f8..15721650c1 100644
--- a/src/Plugins/Export/ExportTexytext.php
+++ b/src/Plugins/Export/ExportTexytext.php
@@ -67,7 +67,7 @@ class ExportTexytext extends ExportPlugin
__('Dump table'),
);
// create primary items and add them to the group
- $leaf = new RadioPropertyItem('structure_or_data');
+ $leaf = new RadioPropertyItem('texytext_structure_or_data');
$leaf->setValues(
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
);
@@ -83,12 +83,12 @@ class ExportTexytext extends ExportPlugin
$dataOptions->setForce('structure');
// create primary items and add them to the group
$leaf = new BoolPropertyItem(
- 'columns',
+ 'texytext_columns',
__('Put columns names in the first row'),
);
$dataOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'null',
+ 'texytext_null',
__('Replace NULL with:'),
);
$dataOptions->addProperty($leaf);
diff --git a/src/Plugins/Export/ExportToon.php b/src/Plugins/Export/ExportToon.php
index 70ffb47e7e..2afdd601a7 100644
--- a/src/Plugins/Export/ExportToon.php
+++ b/src/Plugins/Export/ExportToon.php
@@ -58,17 +58,17 @@ class ExportToon extends ExportPlugin
$generalOptions = new OptionsPropertyMainGroup('toon_general_opts');
// create leaf items and add them to the group
$leaf = new TextPropertyItem(
- 'separator',
+ 'toon_separator',
__('Columns separated with:'),
);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'indent',
+ 'toon_indent',
__('Indentation:'),
);
$generalOptions->addProperty($leaf);
// create primary items and add them to the group
- $leaf = new HiddenPropertyItem('structure_or_data');
+ $leaf = new HiddenPropertyItem('toon_structure_or_data');
$generalOptions->addProperty($leaf);
// add the main group to the root group
$exportSpecificOptions->addProperty($generalOptions);
diff --git a/src/Plugins/Export/ExportXml.php b/src/Plugins/Export/ExportXml.php
index 1a6b0c1ebf..745362d0df 100644
--- a/src/Plugins/Export/ExportXml.php
+++ b/src/Plugins/Export/ExportXml.php
@@ -76,7 +76,7 @@ class ExportXml extends ExportPlugin
// general options main group
$generalOptions = new OptionsPropertyMainGroup('xml_general_opts');
// create primary items and add them to the group
- $leaf = new HiddenPropertyItem('structure_or_data');
+ $leaf = new HiddenPropertyItem('xml_structure_or_data');
$generalOptions->addProperty($leaf);
// add the main group to the root group
$exportSpecificOptions->addProperty($generalOptions);
@@ -89,32 +89,32 @@ class ExportXml extends ExportPlugin
// create primary items and add them to the group
$leaf = new BoolPropertyItem(
- 'export_events',
+ 'xml_export_events',
__('Events'),
);
$structure->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'export_functions',
+ 'xml_export_functions',
__('Functions'),
);
$structure->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'export_procedures',
+ 'xml_export_procedures',
__('Procedures'),
);
$structure->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'export_tables',
+ 'xml_export_tables',
__('Tables'),
);
$structure->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'export_triggers',
+ 'xml_export_triggers',
__('Triggers'),
);
$structure->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'export_views',
+ 'xml_export_views',
__('Views'),
);
$structure->addProperty($leaf);
@@ -127,7 +127,7 @@ class ExportXml extends ExportPlugin
);
// create primary items and add them to the group
$leaf = new BoolPropertyItem(
- 'export_contents',
+ 'xml_export_contents',
__('Export contents'),
);
$data->addProperty($leaf);
diff --git a/src/Plugins/Export/ExportYaml.php b/src/Plugins/Export/ExportYaml.php
index 52e040f39b..32b6dfd095 100644
--- a/src/Plugins/Export/ExportYaml.php
+++ b/src/Plugins/Export/ExportYaml.php
@@ -53,7 +53,7 @@ class ExportYaml extends ExportPlugin
// general options main group
$generalOptions = new OptionsPropertyMainGroup('yaml_general_opts');
// create primary items and add them to the group
- $leaf = new HiddenPropertyItem('structure_or_data');
+ $leaf = new HiddenPropertyItem('yaml_structure_or_data');
$generalOptions->addProperty($leaf);
// add the main group to the root group
$exportSpecificOptions->addProperty($generalOptions);
diff --git a/src/Plugins/Import/AbstractImportCsv.php b/src/Plugins/Import/AbstractImportCsv.php
index e6922e0c11..8f4c7eb81e 100644
--- a/src/Plugins/Import/AbstractImportCsv.php
+++ b/src/Plugins/Import/AbstractImportCsv.php
@@ -25,34 +25,34 @@ abstract class AbstractImportCsv extends ImportPlugin
// create common items and add them to the group
$leaf = new BoolPropertyItem(
- 'replace',
+ $this->getName() . '_replace',
__(
'Update data when duplicate keys found on import (add ON DUPLICATE KEY UPDATE)',
),
);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'terminated',
+ $this->getName() . '_terminated',
__('Columns separated with:'),
);
$leaf->setSize(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'enclosed',
+ $this->getName() . '_enclosed',
__('Columns enclosed with:'),
);
$leaf->setSize(2);
$leaf->setLen(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'escaped',
+ $this->getName() . '_escaped',
__('Columns escaped with:'),
);
$leaf->setSize(2);
$leaf->setLen(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
- 'new_line',
+ $this->getName() . '_new_line',
__('Lines terminated with:'),
);
$leaf->setSize(2);
diff --git a/src/Plugins/Import/ImportCsv.php b/src/Plugins/Import/ImportCsv.php
index 0676c515f2..5575d7d645 100644
--- a/src/Plugins/Import/ImportCsv.php
+++ b/src/Plugins/Import/ImportCsv.php
@@ -88,7 +88,7 @@ class ImportCsv extends AbstractImportCsv
if (ImportSettings::$importType !== 'table') {
$leaf = new TextPropertyItem(
- 'new_tbl_name',
+ 'csv_new_tbl_name',
__(
'Name of the new table (optional):',
),
@@ -97,7 +97,7 @@ class ImportCsv extends AbstractImportCsv
if (ImportSettings::$importType === 'server') {
$leaf = new TextPropertyItem(
- 'new_db_name',
+ 'csv_new_db_name',
__(
'Name of the new database (optional):',
),
@@ -106,7 +106,7 @@ class ImportCsv extends AbstractImportCsv
}
$leaf = new NumberPropertyItem(
- 'partial_import',
+ 'csv_partial_import',
__(
'Import these many number of rows (optional):',
),
@@ -114,7 +114,7 @@ class ImportCsv extends AbstractImportCsv
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'col_names',
+ 'csv_col_names',
__(
'The first line of the file contains the table column names'
. ' (if this is unchecked, the first line will become part'
@@ -124,7 +124,7 @@ class ImportCsv extends AbstractImportCsv
$generalOptions->addProperty($leaf);
} else {
$leaf = new NumberPropertyItem(
- 'partial_import',
+ 'csv_partial_import',
__(
'Import these many number of rows (optional):',
),
@@ -140,14 +140,14 @@ class ImportCsv extends AbstractImportCsv
),
);
$leaf = new TextPropertyItem(
- 'columns',
+ 'csv_columns',
__('Column names:') . ' ' . Generator::showHint($hint->getMessage()),
);
$generalOptions->addProperty($leaf);
}
$leaf = new BoolPropertyItem(
- 'ignore',
+ 'csv_ignore',
__('Do not abort on INSERT error'),
);
$generalOptions->addProperty($leaf);
diff --git a/src/Plugins/Import/ImportLdi.php b/src/Plugins/Import/ImportLdi.php
index 56290f3d25..5e8ab4f27a 100644
--- a/src/Plugins/Import/ImportLdi.php
+++ b/src/Plugins/Import/ImportLdi.php
@@ -67,19 +67,19 @@ class ImportLdi extends AbstractImportCsv
$generalOptions = $this->getGeneralOptions();
$leaf = new TextPropertyItem(
- 'columns',
+ 'ldi_columns',
__('Column names: '),
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'ignore',
+ 'ldi_ignore',
__('Do not abort on INSERT error'),
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'local_option',
+ 'ldi_local_option',
__('Use LOCAL keyword'),
);
$generalOptions->addProperty($leaf);
diff --git a/src/Plugins/Import/ImportOds.php b/src/Plugins/Import/ImportOds.php
index 7ac84202d9..dac1e244bc 100644
--- a/src/Plugins/Import/ImportOds.php
+++ b/src/Plugins/Import/ImportOds.php
@@ -68,7 +68,7 @@ class ImportOds extends ImportPlugin
$generalOptions = new OptionsPropertyMainGroup('ods_general_opts');
// create primary items and add them to the group
$leaf = new BoolPropertyItem(
- 'col_names',
+ 'ods_col_names',
__(
'The first line of the file contains the table column names'
. ' (if this is unchecked, the first line will become part'
@@ -77,19 +77,19 @@ class ImportOds extends ImportPlugin
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'empty_rows',
+ 'ods_empty_rows',
__('Do not import empty rows'),
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'recognize_percentages',
+ 'ods_recognize_percentages',
__(
'Import percentages as proper decimals (ex. 12.00% to .12)',
),
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'recognize_currency',
+ 'ods_recognize_currency',
__('Import currencies (ex. $5.00 to 5.00)'),
);
$generalOptions->addProperty($leaf);
diff --git a/src/Plugins/Import/ImportSql.php b/src/Plugins/Import/ImportSql.php
index d1e8a24026..c96159e78e 100644
--- a/src/Plugins/Import/ImportSql.php
+++ b/src/Plugins/Import/ImportSql.php
@@ -58,7 +58,7 @@ class ImportSql extends ImportPlugin
$generalOptions = new OptionsPropertyMainGroup('sql_general_opts');
// create primary items and add them to the group
$leaf = new SelectPropertyItem(
- 'compatibility',
+ 'sql_compatibility',
__('SQL compatibility mode:'),
);
$leaf->setValues($values);
@@ -67,7 +67,7 @@ class ImportSql extends ImportPlugin
);
$generalOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'no_auto_value_on_zero',
+ 'sql_no_auto_value_on_zero',
__('Do not use AUTO_INCREMENT for zero values'),
);
$leaf->setDoc(
diff --git a/src/Plugins/Schema/SchemaDia.php b/src/Plugins/Schema/SchemaDia.php
index 6aae0a394b..abaf160879 100644
--- a/src/Plugins/Schema/SchemaDia.php
+++ b/src/Plugins/Schema/SchemaDia.php
@@ -51,7 +51,7 @@ class SchemaDia extends SchemaPlugin
$this->addCommonOptions($specificOptions);
$leaf = new SelectPropertyItem(
- 'orientation',
+ 'dia_orientation',
__('Orientation'),
);
$leaf->setValues(
@@ -60,7 +60,7 @@ class SchemaDia extends SchemaPlugin
$specificOptions->addProperty($leaf);
$leaf = new SelectPropertyItem(
- 'paper',
+ 'dia_paper',
__('Paper size'),
);
$leaf->setValues($this->getPaperSizeArray());
diff --git a/src/Plugins/Schema/SchemaEps.php b/src/Plugins/Schema/SchemaEps.php
index 7e4bd177d0..b5e973ca1b 100644
--- a/src/Plugins/Schema/SchemaEps.php
+++ b/src/Plugins/Schema/SchemaEps.php
@@ -53,13 +53,13 @@ class SchemaEps extends SchemaPlugin
// create leaf items and add them to the group
$leaf = new BoolPropertyItem(
- 'all_tables_same_width',
+ 'eps_all_tables_same_width',
__('Same width for all tables'),
);
$specificOptions->addProperty($leaf);
$leaf = new SelectPropertyItem(
- 'orientation',
+ 'eps_orientation',
__('Orientation'),
);
$leaf->setValues(
diff --git a/src/Plugins/Schema/SchemaPdf.php b/src/Plugins/Schema/SchemaPdf.php
index 0676c6fa3d..7c839dcb19 100644
--- a/src/Plugins/Schema/SchemaPdf.php
+++ b/src/Plugins/Schema/SchemaPdf.php
@@ -55,13 +55,13 @@ class SchemaPdf extends SchemaPlugin
// create leaf items and add them to the group
$leaf = new BoolPropertyItem(
- 'all_tables_same_width',
+ 'pdf_all_tables_same_width',
__('Same width for all tables'),
);
$specificOptions->addProperty($leaf);
$leaf = new SelectPropertyItem(
- 'orientation',
+ 'pdf_orientation',
__('Orientation'),
);
$leaf->setValues(
@@ -70,26 +70,26 @@ class SchemaPdf extends SchemaPlugin
$specificOptions->addProperty($leaf);
$leaf = new SelectPropertyItem(
- 'paper',
+ 'pdf_paper',
__('Paper size'),
);
$leaf->setValues($this->getPaperSizeArray());
$specificOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'show_grid',
+ 'pdf_show_grid',
__('Show grid'),
);
$specificOptions->addProperty($leaf);
$leaf = new BoolPropertyItem(
- 'with_doc',
+ 'pdf_with_doc',
__('Data dictionary'),
);
$specificOptions->addProperty($leaf);
$leaf = new SelectPropertyItem(
- 'table_order',
+ 'pdf_table_order',
__('Order of the tables'),
);
$leaf->setValues(
diff --git a/src/Plugins/Schema/SchemaSvg.php b/src/Plugins/Schema/SchemaSvg.php
index f220e94f61..785bfea231 100644
--- a/src/Plugins/Schema/SchemaSvg.php
+++ b/src/Plugins/Schema/SchemaSvg.php
@@ -52,7 +52,7 @@ class SchemaSvg extends SchemaPlugin
// create leaf items and add them to the group
$leaf = new BoolPropertyItem(
- 'all_tables_same_width',
+ 'svg_all_tables_same_width',
__('Same width for all tables'),
);
$specificOptions->addProperty($leaf);
diff --git a/src/Plugins/SchemaPlugin.php b/src/Plugins/SchemaPlugin.php
index 377582e481..5d22483df4 100644
--- a/src/Plugins/SchemaPlugin.php
+++ b/src/Plugins/SchemaPlugin.php
@@ -68,9 +68,9 @@ abstract class SchemaPlugin implements Plugin
*/
protected function addCommonOptions(OptionsPropertyMainGroup $propertyGroup): void
{
- $leaf = new BoolPropertyItem('show_color', __('Show color'));
+ $leaf = new BoolPropertyItem($this->getName() . '_show_color', __('Show color'));
$propertyGroup->addProperty($leaf);
- $leaf = new BoolPropertyItem('show_keys', __('Only show keys'));
+ $leaf = new BoolPropertyItem($this->getName() . '_show_keys', __('Only show keys'));
$propertyGroup->addProperty($leaf);
}
diff --git a/src/Properties/Options/Items/BoolPropertyItem.php b/src/Properties/Options/Items/BoolPropertyItem.php
index f78f8c37ad..a39492cfa4 100644
--- a/src/Properties/Options/Items/BoolPropertyItem.php
+++ b/src/Properties/Options/Items/BoolPropertyItem.php
@@ -19,12 +19,12 @@ class BoolPropertyItem extends OptionsPropertyOneItem
$ret = '