Remove $pluginName . '_' .
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
e1af783d58
commit
bb3855bbe4
@ -10545,18 +10545,54 @@ parameters:
|
||||
count: 1
|
||||
path: src/Profiling.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:checkboxCheck\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/BoolPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:getDefault\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/HiddenPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:getDefault\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/NumberPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Loose comparison via "\=\=" is not allowed\.$#'
|
||||
identifier: equal.notAllowed
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/RadioPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:getDefault\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/RadioPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Loose comparison via "\=\=" is not allowed\.$#'
|
||||
identifier: equal.notAllowed
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/SelectPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:getDefault\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/SelectPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$opt of static method PhpMyAdmin\\Plugins\:\:getDefault\(\) expects string, string\|null given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Properties/Options/Items/TextPropertyItem.php
|
||||
|
||||
-
|
||||
message: '#^Loose comparison via "\=\=" is not allowed\.$#'
|
||||
identifier: equal.notAllowed
|
||||
|
||||
@ -5596,6 +5596,9 @@
|
||||
<code><![CDATA[$propertyGroup->getName()]]></code>
|
||||
<code><![CDATA[$subgroupHeader->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
<PossiblyNullReference>
|
||||
<code><![CDATA[getName]]></code>
|
||||
</PossiblyNullReference>
|
||||
<RiskyTruthyFalsyComparison>
|
||||
<code><![CDATA[empty(Config::getInstance()->settings[$pluginType->value][$opt])]]></code>
|
||||
</RiskyTruthyFalsyComparison>
|
||||
@ -7186,48 +7189,60 @@
|
||||
</RiskyTruthyFalsyComparison>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/BoolPropertyItem.php">
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getForce()]]></code>
|
||||
<code><![CDATA[$this->getForce()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/HiddenPropertyItem.php">
|
||||
<PossiblyNullOperand>
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/NumberPropertyItem.php">
|
||||
<PossiblyNullOperand>
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/RadioPropertyItem.php">
|
||||
<PossiblyNullOperand>
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/SelectPropertyItem.php">
|
||||
<PossiblyNullOperand>
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
</file>
|
||||
<file src="src/Properties/Options/Items/TextPropertyItem.php">
|
||||
<PossiblyNullOperand>
|
||||
<PossiblyNullArgument>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
</PossiblyNullArgument>
|
||||
<PossiblyNullOperand>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
<code><![CDATA[$this->getName()]]></code>
|
||||
|
||||
@ -322,7 +322,7 @@ class Plugins
|
||||
|
||||
$ret .= '<li class="list-group-item"><ul class="list-group"';
|
||||
if ($subgroupHeader?->getName() !== null) {
|
||||
$ret .= ' id="ul_' . $pluginName . '_' . $subgroupHeader->getName() . '">';
|
||||
$ret .= ' id="ul_' . $subgroupHeader->getName() . '">';
|
||||
} else {
|
||||
$ret .= '>';
|
||||
}
|
||||
|
||||
@ -65,10 +65,10 @@ class ExportCodegen extends ExportPlugin
|
||||
// general options main group
|
||||
$generalOptions = new OptionsPropertyMainGroup('codegen_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('codegen_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new SelectPropertyItem(
|
||||
'format',
|
||||
'codegen_format',
|
||||
__('Format:'),
|
||||
);
|
||||
$leaf->setValues(self::CODEGEN_FORMATS);
|
||||
|
||||
@ -65,41 +65,41 @@ class ExportCsv extends ExportPlugin
|
||||
$generalOptions = new OptionsPropertyMainGroup('csv_general_opts');
|
||||
// create leaf items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'separator',
|
||||
'csv_separator',
|
||||
__('Columns separated with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'enclosed',
|
||||
'csv_enclosed',
|
||||
__('Columns enclosed with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'escaped',
|
||||
'csv_escaped',
|
||||
__('Columns escaped with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'terminated',
|
||||
'csv_terminated',
|
||||
__('Lines terminated with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'csv_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'removeCRLF',
|
||||
'csv_removeCRLF',
|
||||
__('Remove carriage return/line feed characters within columns'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'csv_columns',
|
||||
__('Put columns names in the first row'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('csv_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
// add the main group to the root group
|
||||
$exportSpecificOptions->addProperty($generalOptions);
|
||||
|
||||
@ -66,22 +66,22 @@ class ExportExcel extends ExportPlugin
|
||||
$generalOptions = new OptionsPropertyMainGroup('excel_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'excel_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'removeCRLF',
|
||||
'excel_removeCRLF',
|
||||
__('Remove carriage return/line feed characters within columns'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'excel_columns',
|
||||
__('Put columns names in the first row'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new SelectPropertyItem(
|
||||
'edition',
|
||||
'excel_edition',
|
||||
__('Excel edition:'),
|
||||
);
|
||||
$leaf->setValues(
|
||||
@ -92,7 +92,7 @@ class ExportExcel extends ExportPlugin
|
||||
],
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('excel_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
// add the main group to the root group
|
||||
$exportSpecificOptions->addProperty($generalOptions);
|
||||
|
||||
@ -68,7 +68,7 @@ class ExportHtmlword extends ExportPlugin
|
||||
__('Dump table'),
|
||||
);
|
||||
// create primary items and add them to the group
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('htmlword_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
@ -84,12 +84,12 @@ class ExportHtmlword extends ExportPlugin
|
||||
$dataOptions->setForce('structure');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'htmlword_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'htmlword_columns',
|
||||
__('Put columns names in the first row'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
|
||||
@ -80,17 +80,17 @@ class ExportJson extends ExportPlugin
|
||||
// general options main group
|
||||
$generalOptions = new OptionsPropertyMainGroup('json_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('json_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'pretty_print',
|
||||
'json_pretty_print',
|
||||
__('Output pretty-printed JSON (Use human-readable formatting)'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'unicode',
|
||||
'json_unicode',
|
||||
__('Output unicode characters unescaped'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
@ -97,7 +97,7 @@ class ExportLatex extends ExportPlugin
|
||||
$generalOptions = new OptionsPropertyMainGroup('latex_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new BoolPropertyItem(
|
||||
'caption',
|
||||
'latex_caption',
|
||||
__('Include table caption'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
@ -110,7 +110,7 @@ class ExportLatex extends ExportPlugin
|
||||
__('Dump table'),
|
||||
);
|
||||
// create primary items and add them to the group
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('latex_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
@ -127,19 +127,19 @@ class ExportLatex extends ExportPlugin
|
||||
$structureOptions->setForce('data');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'structure_caption',
|
||||
'latex_structure_caption',
|
||||
__('Table caption:'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
$structureOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'structure_continued_caption',
|
||||
'latex_structure_continued_caption',
|
||||
__('Table caption (continued):'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
$structureOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'structure_label',
|
||||
'latex_structure_label',
|
||||
__('Label key:'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
@ -147,20 +147,20 @@ class ExportLatex extends ExportPlugin
|
||||
$relationParameters = $this->relation->getRelationParameters();
|
||||
if ($relationParameters->relationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'relation',
|
||||
'latex_relation',
|
||||
__('Display foreign key relationships'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
}
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'comments',
|
||||
'latex_comments',
|
||||
__('Display comments'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
if ($relationParameters->browserTransformationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'mime',
|
||||
'latex_mime',
|
||||
__('Display media types'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
@ -178,30 +178,30 @@ class ExportLatex extends ExportPlugin
|
||||
$dataOptions->setForce('structure');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'latex_columns',
|
||||
__('Put columns names in the first row:'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'data_caption',
|
||||
'latex_data_caption',
|
||||
__('Table caption:'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'data_continued_caption',
|
||||
'latex_data_continued_caption',
|
||||
__('Table caption (continued):'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'data_label',
|
||||
'latex_data_label',
|
||||
__('Label key:'),
|
||||
);
|
||||
$leaf->setDoc('faq6-27');
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'latex_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
|
||||
@ -65,7 +65,7 @@ class ExportMediawiki extends ExportPlugin
|
||||
'mediawiki_dump_table',
|
||||
__('Dump table'),
|
||||
);
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('mediawiki_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
@ -74,14 +74,14 @@ class ExportMediawiki extends ExportPlugin
|
||||
|
||||
// export table name
|
||||
$leaf = new BoolPropertyItem(
|
||||
'caption',
|
||||
'mediawiki_caption',
|
||||
__('Export table names'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
// export table headers
|
||||
$leaf = new BoolPropertyItem(
|
||||
'headers',
|
||||
'mediawiki_headers',
|
||||
__('Export table headers'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
@ -62,16 +62,16 @@ class ExportOds extends ExportPlugin
|
||||
$generalOptions = new OptionsPropertyMainGroup('ods_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'ods_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'ods_columns',
|
||||
__('Put columns names in the first row'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('ods_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
// add the main group to the root group
|
||||
$exportSpecificOptions->addProperty($generalOptions);
|
||||
|
||||
@ -75,7 +75,7 @@ class ExportOdt extends ExportPlugin
|
||||
__('Dump table'),
|
||||
);
|
||||
// create primary items and add them to the group
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('odt_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
@ -94,20 +94,20 @@ class ExportOdt extends ExportPlugin
|
||||
// create primary items and add them to the group
|
||||
if ($relationParameters->relationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'relation',
|
||||
'odt_relation',
|
||||
__('Display foreign key relationships'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
}
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'comments',
|
||||
'odt_comments',
|
||||
__('Display comments'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
if ($relationParameters->browserTransformationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'mime',
|
||||
'odt_mime',
|
||||
__('Display media types'),
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
@ -125,12 +125,12 @@ class ExportOdt extends ExportPlugin
|
||||
$dataOptions->setForce('structure');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new BoolPropertyItem(
|
||||
'columns',
|
||||
'odt_columns',
|
||||
__('Put columns names in the first row'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
$leaf = new TextPropertyItem(
|
||||
'null',
|
||||
'odt_null',
|
||||
__('Replace NULL with:'),
|
||||
);
|
||||
$dataOptions->addProperty($leaf);
|
||||
|
||||
@ -63,7 +63,7 @@ class ExportPdf extends ExportPlugin
|
||||
$generalOptions = new OptionsPropertyMainGroup('pdf_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new TextPropertyItem(
|
||||
'report_title',
|
||||
'pdf_report_title',
|
||||
__('Report title:'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
@ -75,7 +75,7 @@ class ExportPdf extends ExportPlugin
|
||||
'pdf_dump_what',
|
||||
__('Dump table'),
|
||||
);
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('pdf_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
|
||||
@ -54,7 +54,7 @@ class ExportPhparray extends ExportPlugin
|
||||
// general options main group
|
||||
$generalOptions = new OptionsPropertyMainGroup('phparray_general_opts');
|
||||
// create primary items and add them to the group
|
||||
$leaf = new HiddenPropertyItem('structure_or_data');
|
||||
$leaf = new HiddenPropertyItem('phparray_structure_or_data');
|
||||
$generalOptions->addProperty($leaf);
|
||||
// add the main group to the root group
|
||||
$exportSpecificOptions->addProperty($generalOptions);
|
||||
|
||||
@ -179,7 +179,7 @@ class ExportSql extends ExportPlugin
|
||||
// comments
|
||||
$subgroup = new OptionsPropertySubgroup('sql_include_comments');
|
||||
$leaf = new BoolPropertyItem(
|
||||
'include_comments',
|
||||
'sql_include_comments',
|
||||
__(
|
||||
'Display comments <i>(includes info such as export timestamp, PHP version, and server version)</i>',
|
||||
),
|
||||
@ -187,12 +187,12 @@ class ExportSql extends ExportPlugin
|
||||
$subgroup->setSubgroupHeader($leaf);
|
||||
|
||||
$leaf = new TextPropertyItem(
|
||||
'header_comment',
|
||||
'sql_header_comment',
|
||||
__('Additional custom header comment (\n splits lines):'),
|
||||
);
|
||||
$subgroup->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'dates',
|
||||
'sql_dates',
|
||||
__(
|
||||
'Include a timestamp of when databases were created, last updated, and last checked',
|
||||
),
|
||||
@ -201,7 +201,7 @@ class ExportSql extends ExportPlugin
|
||||
$relationParameters = $this->relation->getRelationParameters();
|
||||
if ($relationParameters->relationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'relation',
|
||||
'sql_relation',
|
||||
__('Display foreign key relationships'),
|
||||
);
|
||||
$subgroup->addProperty($leaf);
|
||||
@ -209,7 +209,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
if ($relationParameters->browserTransformationFeature !== null) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'mime',
|
||||
'sql_mime',
|
||||
__('Display media types'),
|
||||
);
|
||||
$subgroup->addProperty($leaf);
|
||||
@ -219,7 +219,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
// enclose in a transaction
|
||||
$leaf = new BoolPropertyItem(
|
||||
'use_transaction',
|
||||
'sql_use_transaction',
|
||||
__('Enclose export in a transaction'),
|
||||
);
|
||||
$leaf->setDoc(
|
||||
@ -229,7 +229,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
// disable foreign key checks
|
||||
$leaf = new BoolPropertyItem(
|
||||
'disable_fk',
|
||||
'sql_disable_fk',
|
||||
__('Disable foreign key checks'),
|
||||
);
|
||||
$leaf->setDoc(
|
||||
@ -239,14 +239,14 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
// export views as tables
|
||||
$leaf = new BoolPropertyItem(
|
||||
'views_as_tables',
|
||||
'sql_views_as_tables',
|
||||
__('Export views as tables'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
// export metadata
|
||||
$leaf = new BoolPropertyItem(
|
||||
'metadata',
|
||||
'sql_metadata',
|
||||
__('Export metadata'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
@ -262,7 +262,7 @@ class ExportSql extends ExportPlugin
|
||||
'sql_dump_table',
|
||||
__('Dump table'),
|
||||
);
|
||||
$leaf = new RadioPropertyItem('structure_or_data');
|
||||
$leaf = new RadioPropertyItem('sql_structure_or_data');
|
||||
$leaf->setValues(
|
||||
['structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')],
|
||||
);
|
||||
@ -283,7 +283,7 @@ class ExportSql extends ExportPlugin
|
||||
// begin SQL Statements
|
||||
$subgroup = new OptionsPropertySubgroup();
|
||||
$leaf = new MessageOnlyPropertyItem(
|
||||
'add_statements',
|
||||
'sql_add_statements',
|
||||
__('Add statements:'),
|
||||
);
|
||||
$subgroup->setSubgroupHeader($leaf);
|
||||
@ -291,7 +291,7 @@ class ExportSql extends ExportPlugin
|
||||
// server export options
|
||||
if (ExportPlugin::$exportType === ExportType::Server) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'drop_database',
|
||||
'sql_drop_database',
|
||||
sprintf(__('Add %s statement'), '<code>DROP DATABASE IF EXISTS</code>'),
|
||||
);
|
||||
$subgroup->addProperty($leaf);
|
||||
@ -300,7 +300,7 @@ class ExportSql extends ExportPlugin
|
||||
if (ExportPlugin::$exportType === ExportType::Database) {
|
||||
$createClause = '<code>CREATE DATABASE / USE</code>';
|
||||
$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 .= '<code> / TRIGGER</code>';
|
||||
|
||||
$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'), '<code>CREATE TABLE</code>'),
|
||||
);
|
||||
$subgroupCreateTable->setSubgroupHeader($leaf);
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'if_not_exists',
|
||||
'sql_if_not_exists',
|
||||
'<code>IF NOT EXISTS</code> ' . __(
|
||||
'(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'), '<code>AUTO_INCREMENT</code>'),
|
||||
);
|
||||
$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'), '<code>CREATE VIEW</code>'),
|
||||
);
|
||||
$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'), '<code>OR REPLACE</code>'),
|
||||
);
|
||||
$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'),
|
||||
'<code>CREATE PROCEDURE / FUNCTION / EVENT</code>',
|
||||
@ -387,7 +387,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
// Add triggers option
|
||||
$leaf = new BoolPropertyItem(
|
||||
'create_trigger',
|
||||
'sql_create_trigger',
|
||||
sprintf(__('Add %s statement'), '<code>CREATE TRIGGER</code>'),
|
||||
);
|
||||
$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 '
|
||||
. '<i>(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 <code>INSERT</code> statements, use:'),
|
||||
);
|
||||
$subgroup->setSubgroupHeader($leaf);
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'delayed',
|
||||
'sql_delayed',
|
||||
__('<code>INSERT DELAYED</code> statements'),
|
||||
);
|
||||
$leaf->setDoc(
|
||||
@ -439,7 +439,7 @@ class ExportSql extends ExportPlugin
|
||||
$subgroup->addProperty($leaf);
|
||||
|
||||
$leaf = new BoolPropertyItem(
|
||||
'ignore',
|
||||
'sql_ignore',
|
||||
__('<code>INSERT IGNORE</code> 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',
|
||||
__('<code>INSERT IGNORE</code> 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 <i>(for example, "abc" becomes 0x616263)</i>',
|
||||
),
|
||||
@ -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 <i>(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:',
|
||||
),
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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'
|
||||
. ' <i>(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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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'
|
||||
. ' <i>(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 <i>(ex. 12.00% to .12)</i>',
|
||||
),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
$leaf = new BoolPropertyItem(
|
||||
'recognize_currency',
|
||||
'ods_recognize_currency',
|
||||
__('Import currencies <i>(ex. $5.00 to 5.00)</i>'),
|
||||
);
|
||||
$generalOptions->addProperty($leaf);
|
||||
|
||||
@ -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 <code>AUTO_INCREMENT</code> for zero values'),
|
||||
);
|
||||
$leaf->setDoc(
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ class BoolPropertyItem extends OptionsPropertyOneItem
|
||||
$ret = '<li class="list-group-item">';
|
||||
$ret .= '<div class="form-check form-switch">';
|
||||
$ret .= '<input class="form-check-input" type="checkbox" role="switch" name="'
|
||||
. $pluginName . '_' . $this->getName() . '"'
|
||||
. ' value="y" id="checkbox_' . $pluginName . '_' . $this->getName() . '"'
|
||||
. $this->getName() . '"'
|
||||
. ' value="y" id="checkbox_' . $this->getName() . '"'
|
||||
. ' '
|
||||
. Plugins::checkboxCheck(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
);
|
||||
|
||||
if ($this->getForce() !== null) {
|
||||
@ -38,7 +38,7 @@ class BoolPropertyItem extends OptionsPropertyOneItem
|
||||
}
|
||||
|
||||
$ret .= '>';
|
||||
$ret .= '<label class="form-check-label" for="checkbox_' . $pluginName . '_' . $this->getName() . '">'
|
||||
$ret .= '<label class="form-check-label" for="checkbox_' . $this->getName() . '">'
|
||||
. $plugin->getTranslatedText($this->getText() ?? '') . '</label></div>';
|
||||
$ret .= Plugins::getDocumentationLinkHtml($this);
|
||||
|
||||
|
||||
@ -18,11 +18,11 @@ class HiddenPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
public function getHtml(Plugin $plugin, PluginType $pluginType, string $pluginName): string
|
||||
{
|
||||
return '<li class="list-group-item"><input type="hidden" name="' . $pluginName . '_' . $this->getName() . '"'
|
||||
return '<li class="list-group-item"><input type="hidden" name="' . $this->getName() . '"'
|
||||
. ' value="'
|
||||
. htmlspecialchars($plugin->getTranslatedText(Plugins::getDefault(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
)))
|
||||
. '">';
|
||||
}
|
||||
|
||||
@ -19,15 +19,15 @@ class NumberPropertyItem extends OptionsPropertyOneItem
|
||||
public function getHtml(Plugin $plugin, PluginType $pluginType, string $pluginName): string
|
||||
{
|
||||
$ret = '<li class="list-group-item">';
|
||||
$ret .= '<label for="number_' . $pluginName . '_' . $this->getName() . '" class="form-label">'
|
||||
$ret .= '<label for="number_' . $this->getName() . '" class="form-label">'
|
||||
. $plugin->getTranslatedText($this->getText() ?? '') . '</label>';
|
||||
$ret .= '<input class="form-control" type="number" name="' . $pluginName . '_' . $this->getName() . '"'
|
||||
$ret .= '<input class="form-control" type="number" name="' . $this->getName() . '"'
|
||||
. ' value="'
|
||||
. htmlspecialchars($plugin->getTranslatedText(Plugins::getDefault(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
))) . '"'
|
||||
. ' id="number_' . $pluginName . '_' . $this->getName() . '"'
|
||||
. ' id="number_' . $this->getName() . '"'
|
||||
. ' min="0"'
|
||||
. '>';
|
||||
|
||||
|
||||
@ -20,21 +20,21 @@ class RadioPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
$default = htmlspecialchars($plugin->getTranslatedText(Plugins::getDefault(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
)));
|
||||
|
||||
$ret = '<li class="list-group-item">';
|
||||
|
||||
foreach ($this->getValues() as $key => $val) {
|
||||
$ret .= '<div class="form-check"><input type="radio" name="' . $pluginName . '_' . $this->getName()
|
||||
$ret .= '<div class="form-check"><input type="radio" name="' . $this->getName()
|
||||
. '" class="form-check-input" value="' . $key
|
||||
. '" id="radio_' . $pluginName . '_' . $this->getName() . '_' . $key . '"';
|
||||
. '" id="radio_' . $this->getName() . '_' . $key . '"';
|
||||
if ($key == $default) {
|
||||
$ret .= ' checked';
|
||||
}
|
||||
|
||||
$ret .= '><label class="form-check-label" for="radio_'
|
||||
. $pluginName . '_' . $this->getName() . '_' . $key . '">'
|
||||
. $this->getName() . '_' . $key . '">'
|
||||
. $plugin->getTranslatedText($val) . '</label></div>';
|
||||
}
|
||||
|
||||
|
||||
@ -19,13 +19,13 @@ class SelectPropertyItem extends OptionsPropertyOneItem
|
||||
public function getHtml(Plugin $plugin, PluginType $pluginType, string $pluginName): string
|
||||
{
|
||||
$ret = '<li class="list-group-item">';
|
||||
$ret .= '<label for="select_' . $pluginName . '_' . $this->getName() . '" class="form-label">'
|
||||
$ret .= '<label for="select_' . $this->getName() . '" class="form-label">'
|
||||
. $plugin->getTranslatedText($this->getText() ?? '') . '</label>';
|
||||
$ret .= '<select class="form-select" name="' . $pluginName . '_' . $this->getName() . '"'
|
||||
. ' id="select_' . $pluginName . '_' . $this->getName() . '">';
|
||||
$ret .= '<select class="form-select" name="' . $this->getName() . '"'
|
||||
. ' id="select_' . $this->getName() . '">';
|
||||
$default = htmlspecialchars($plugin->getTranslatedText(Plugins::getDefault(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
)));
|
||||
foreach ($this->getValues() as $key => $val) {
|
||||
$ret .= '<option value="' . $key . '"';
|
||||
|
||||
@ -19,15 +19,15 @@ class TextPropertyItem extends OptionsPropertyOneItem
|
||||
public function getHtml(Plugin $plugin, PluginType $pluginType, string $pluginName): string
|
||||
{
|
||||
$ret = '<li class="list-group-item">';
|
||||
$ret .= '<label for="text_' . $pluginName . '_' . $this->getName() . '" class="form-label">'
|
||||
$ret .= '<label for="text_' . $this->getName() . '" class="form-label">'
|
||||
. $plugin->getTranslatedText($this->getText() ?? '') . '</label>';
|
||||
$ret .= '<input class="form-control" type="text" name="' . $pluginName . '_' . $this->getName() . '"'
|
||||
$ret .= '<input class="form-control" type="text" name="' . $this->getName() . '"'
|
||||
. ' value="'
|
||||
. htmlspecialchars($plugin->getTranslatedText(Plugins::getDefault(
|
||||
$pluginType,
|
||||
$pluginName . '_' . $this->getName(),
|
||||
$this->getName(),
|
||||
))) . '"'
|
||||
. ' id="text_' . $pluginName . '_' . $this->getName() . '"'
|
||||
. ' id="text_' . $this->getName() . '"'
|
||||
. ($this->getSize() !== 0
|
||||
? ' size="' . $this->getSize() . '"'
|
||||
: '')
|
||||
|
||||
@ -88,7 +88,7 @@ final class ExportCodegenTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $hidden);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'codegen_structure_or_data',
|
||||
$hidden->getName(),
|
||||
);
|
||||
|
||||
@ -97,7 +97,7 @@ final class ExportCodegenTest extends AbstractTestCase
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $select);
|
||||
|
||||
self::assertSame(
|
||||
'format',
|
||||
'codegen_format',
|
||||
$select->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'separator',
|
||||
'csv_separator',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -114,7 +114,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'enclosed',
|
||||
'csv_enclosed',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -129,7 +129,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'escaped',
|
||||
'csv_escaped',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -144,7 +144,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'terminated',
|
||||
'csv_terminated',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -159,7 +159,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'csv_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -174,7 +174,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'removeCRLF',
|
||||
'csv_removeCRLF',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -189,7 +189,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'csv_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -203,7 +203,7 @@ final class ExportCsvTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'csv_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ final class ExportExcelTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'excel_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -105,7 +105,7 @@ final class ExportExcelTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'removeCRLF',
|
||||
'excel_removeCRLF',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -120,7 +120,7 @@ final class ExportExcelTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'excel_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -135,7 +135,7 @@ final class ExportExcelTest extends AbstractTestCase
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'edition',
|
||||
'excel_edition',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -158,7 +158,7 @@ final class ExportExcelTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'excel_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ final class ExportHtmlwordTest extends AbstractTestCase
|
||||
self::assertInstanceOf(RadioPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'htmlword_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -156,7 +156,7 @@ final class ExportHtmlwordTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'htmlword_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -170,7 +170,7 @@ final class ExportHtmlwordTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'htmlword_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ final class ExportJsonTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'json_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'caption',
|
||||
'latex_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -151,7 +151,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(RadioPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'latex_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -189,7 +189,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_caption',
|
||||
'latex_structure_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -209,7 +209,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_continued_caption',
|
||||
'latex_structure_continued_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -229,7 +229,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_label',
|
||||
'latex_structure_label',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -249,7 +249,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'relation',
|
||||
'latex_relation',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -264,7 +264,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'comments',
|
||||
'latex_comments',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -278,7 +278,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'mime',
|
||||
'latex_mime',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -315,7 +315,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'latex_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -330,7 +330,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'data_caption',
|
||||
'latex_data_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -350,7 +350,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'data_continued_caption',
|
||||
'latex_data_continued_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -370,7 +370,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'data_label',
|
||||
'latex_data_label',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -389,7 +389,7 @@ final class ExportLatexTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'latex_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -123,7 +123,7 @@ final class ExportMediawikiTest extends AbstractTestCase
|
||||
self::assertInstanceOf(RadioPropertyItem::class, $sgHeader);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'mediawiki_structure_or_data',
|
||||
$sgHeader->getName(),
|
||||
);
|
||||
|
||||
@ -138,7 +138,7 @@ final class ExportMediawikiTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'caption',
|
||||
'mediawiki_caption',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -152,7 +152,7 @@ final class ExportMediawikiTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'headers',
|
||||
'mediawiki_headers',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -113,7 +113,7 @@ final class ExportOdsTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'ods_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -128,7 +128,7 @@ final class ExportOdsTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'ods_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -142,7 +142,7 @@ final class ExportOdsTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'ods_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(RadioPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'odt_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -176,7 +176,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'relation',
|
||||
'odt_relation',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -191,7 +191,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'comments',
|
||||
'odt_comments',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -205,7 +205,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'mime',
|
||||
'odt_mime',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -242,7 +242,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'odt_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -256,7 +256,7 @@ final class ExportOdtTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'odt_null',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ final class ExportPdfTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'report_title',
|
||||
'pdf_report_title',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -126,7 +126,7 @@ final class ExportPdfTest extends AbstractTestCase
|
||||
self::assertInstanceOf(RadioPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'pdf_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ final class ExportTexytextTest extends AbstractTestCase
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'columns',
|
||||
'texytext_columns',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -139,7 +139,7 @@ final class ExportTexytextTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'null',
|
||||
'texytext_null',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ class ExportToonTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'separator',
|
||||
'toon_separator',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -119,7 +119,7 @@ class ExportToonTest extends AbstractTestCase
|
||||
self::assertInstanceOf(TextPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'indent',
|
||||
'toon_indent',
|
||||
$property->getName(),
|
||||
);
|
||||
|
||||
@ -133,7 +133,7 @@ class ExportToonTest extends AbstractTestCase
|
||||
self::assertInstanceOf(HiddenPropertyItem::class, $property);
|
||||
|
||||
self::assertSame(
|
||||
'structure_or_data',
|
||||
'toon_structure_or_data',
|
||||
$property->getName(),
|
||||
);
|
||||
}
|
||||
|
||||
@ -39,26 +39,26 @@ final class SchemaDiaTest extends AbstractTestCase
|
||||
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('dia_show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('Show color', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('dia_show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('Only show keys', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('dia_orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('Orientation', $specificOptionProperty->getText());
|
||||
self::assertSame(['L' => 'Landscape', 'P' => 'Portrait'], $specificOptionProperty->getValues());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('paper', $specificOptionProperty->getName());
|
||||
self::assertSame('dia_paper', $specificOptionProperty->getName());
|
||||
self::assertSame('Paper size', $specificOptionProperty->getText());
|
||||
self::assertSame(
|
||||
['A3' => 'A3', 'A4' => 'A4', 'A5' => 'A5', 'letter' => 'letter', 'legal' => 'legal'],
|
||||
|
||||
@ -39,25 +39,25 @@ final class SchemaEpsTest extends AbstractTestCase
|
||||
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('eps_show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('Show color', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('eps_show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('Only show keys', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('eps_all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('Same width for all tables', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('eps_orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('Orientation', $specificOptionProperty->getText());
|
||||
self::assertSame(['L' => 'Landscape', 'P' => 'Portrait'], $specificOptionProperty->getValues());
|
||||
}
|
||||
|
||||
@ -39,32 +39,32 @@ final class SchemaPdfTest extends AbstractTestCase
|
||||
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('Show color', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('Only show keys', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('Same width for all tables', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_orientation', $specificOptionProperty->getName());
|
||||
self::assertSame('Orientation', $specificOptionProperty->getText());
|
||||
self::assertSame(['L' => 'Landscape', 'P' => 'Portrait'], $specificOptionProperty->getValues());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('paper', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_paper', $specificOptionProperty->getName());
|
||||
self::assertSame('Paper size', $specificOptionProperty->getText());
|
||||
self::assertSame(
|
||||
['A3' => 'A3', 'A4' => 'A4', 'A5' => 'A5', 'letter' => 'letter', 'legal' => 'legal'],
|
||||
@ -74,19 +74,19 @@ final class SchemaPdfTest extends AbstractTestCase
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_grid', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_show_grid', $specificOptionProperty->getName());
|
||||
self::assertSame('Show grid', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('with_doc', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_with_doc', $specificOptionProperty->getName());
|
||||
self::assertSame('Data dictionary', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(SelectPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('table_order', $specificOptionProperty->getName());
|
||||
self::assertSame('pdf_table_order', $specificOptionProperty->getName());
|
||||
self::assertSame('Order of the tables', $specificOptionProperty->getText());
|
||||
self::assertSame(
|
||||
['' => 'None', 'name_asc' => 'Name (Ascending)', 'name_desc' => 'Name (Descending)'],
|
||||
|
||||
@ -38,19 +38,19 @@ final class SchemaSvgTest extends AbstractTestCase
|
||||
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('svg_show_color', $specificOptionProperty->getName());
|
||||
self::assertSame('Show color', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('svg_show_keys', $specificOptionProperty->getName());
|
||||
self::assertSame('Only show keys', $specificOptionProperty->getText());
|
||||
|
||||
$specificOptionProperties->next();
|
||||
$specificOptionProperty = $specificOptionProperties->current();
|
||||
self::assertInstanceOf(BoolPropertyItem::class, $specificOptionProperty);
|
||||
self::assertSame('all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('svg_all_tables_same_width', $specificOptionProperty->getName());
|
||||
self::assertSame('Same width for all tables', $specificOptionProperty->getText());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user