diff --git a/libraries/classes/Plugins.php b/libraries/classes/Plugins.php
index 8620f5d257..dd36bc5a04 100644
--- a/libraries/classes/Plugins.php
+++ b/libraries/classes/Plugins.php
@@ -66,6 +66,17 @@ class Plugins
return null;
}
+ if ($type === 'export') {
+ /**
+ * @psalm-suppress InvalidArrayOffset, MixedAssignment, MixedMethodCall
+ */
+ return new $class(
+ $GLOBALS['containerBuilder']->get('relation'),
+ $GLOBALS['containerBuilder']->get('export'),
+ $GLOBALS['containerBuilder']->get('transformations')
+ );
+ }
+
return new $class();
}
@@ -133,7 +144,19 @@ class Plugins
continue;
}
- $plugin = new $class();
+ if ($type === 'Export') {
+ /**
+ * @psalm-suppress InvalidArrayOffset, MixedAssignment, MixedMethodCall
+ */
+ $plugin = new $class(
+ $GLOBALS['containerBuilder']->get('relation'),
+ $GLOBALS['containerBuilder']->get('export'),
+ $GLOBALS['containerBuilder']->get('transformations')
+ );
+ } else {
+ $plugin = new $class();
+ }
+
if (! ($plugin instanceof Plugin) || ! $plugin->isAvailable()) {
continue;
}
@@ -178,7 +201,7 @@ class Plugins
isset($_GET[$opt])
|| ! isset($_GET['repopulate'])
&& ((! empty($GLOBALS['timeout_passed']) && isset($_REQUEST[$opt]))
- || ! empty($GLOBALS['cfg'][$section][$opt]))
+ || ! empty($GLOBALS['cfg'][$section][$opt]))
) {
return ' checked="checked"';
}
@@ -372,7 +395,7 @@ class Plugins
* Get HTML for properties items
*
* @param string $section name of config section in
- * $GLOBALS['cfg'][$section] for plugin
+ * $GLOBALS['cfg'][$section] for plugin
* @param string $plugin_name unique plugin name
* @param OptionsPropertyItem $propertyItem Property item
* @psalm-param 'Export'|'Import'|'Schema' $section
@@ -391,14 +414,14 @@ class Plugins
$ret .= '
' . "\n";
$ret .= '' . "\n";
$ret .= 'getName()
- );
+ . $propertyItem->getName() . '"'
+ . ' value="something" id="checkbox_' . $plugin_name . '_'
+ . $propertyItem->getName() . '"'
+ . ' '
+ . self::checkboxCheck(
+ $section,
+ $plugin_name . '_' . $propertyItem->getName()
+ );
if ($propertyItem->getForce() != null) {
// Same code is also few lines lower, update both if needed
@@ -413,19 +436,19 @@ class Plugins
$ret .= '>';
$ret .= '
';
+ . $propertyItem->getName() . '">'
+ . self::getString($propertyItem->getText()) . '';
break;
case DocPropertyItem::class:
echo DocPropertyItem::class;
break;
case HiddenPropertyItem::class:
$ret .= '';
break;
case MessageOnlyPropertyItem::class:
@@ -455,8 +478,8 @@ class Plugins
}
$ret .= '>';
+ . $pitem->getName() . '_' . $key . '">'
+ . self::getString($val) . '';
}
$ret .= '';
@@ -469,12 +492,12 @@ class Plugins
$pitem = $propertyItem;
$ret .= '' . "\n";
$ret .= '';
+ . $pitem->getName() . '" class="form-label">'
+ . self::getString($pitem->getText()) . '';
$ret .= '