From e27ae93962ade767a5bda8fd3482601e3b3c9028 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 20 Aug 2015 10:46:24 +0530 Subject: [PATCH] Organize export options Signed-off-by: Madhura Jayaratne --- libraries/plugins/export/ExportSql.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php index 4d1c7af4c2..0956006d13 100644 --- a/libraries/plugins/export/ExportSql.class.php +++ b/libraries/plugins/export/ExportSql.class.php @@ -262,25 +262,27 @@ class ExportSql extends ExportPlugin $leaf->setText(sprintf(__('Add %s statement'), $drop_clause)); $subgroup->addProperty($leaf); + $subgroup_create_table = new OptionsPropertySubgroup(); + // Add table structure option $leaf = new BoolPropertyItem(); $leaf->setName('create_table'); $leaf->setText( sprintf(__('Add %s statement'), 'CREATE TABLE') ); - - $subgroup_create_table = new OptionsPropertySubgroup(); $subgroup_create_table->setSubgroupHeader($leaf); + $leaf = new BoolPropertyItem(); $leaf->setName('if_not_exists'); $leaf->setText('IF NOT EXISTS'); $subgroup_create_table->addProperty($leaf); + $leaf = new BoolPropertyItem(); $leaf->setName('auto_increment'); $leaf->setText(sprintf(__('%s value'), 'AUTO_INCREMENT')); $subgroup_create_table->addProperty($leaf); + $subgroup->addProperty($subgroup_create_table); - $structureOptions->addProperty($subgroup); // Add view option $leaf = new BoolPropertyItem(); @@ -311,6 +313,8 @@ class ExportSql extends ExportPlugin ); $subgroup->addProperty($leaf); + $structureOptions->addProperty($subgroup); + $leaf = new BoolPropertyItem(); $leaf->setName("backquotes"); $leaf->setText(