WebshopApi: ShopConnector Base und ALL
[kivitendo-erp.git] / SL / ShopConnector / ALL.pm
diff --git a/SL/ShopConnector/ALL.pm b/SL/ShopConnector/ALL.pm
new file mode 100644 (file)
index 0000000..809f74a
--- /dev/null
@@ -0,0 +1,34 @@
+package SL::ShopConnector::ALL;
+
+use strict;
+
+my %shop_connector_by_name = (
+);
+
+my %shop_connector_by_connector = (
+);
+
+my @shop_connector_order = qw(
+  shopware
+);
+
+my @shop_connectors = (
+);
+
+
+sub all_shop_connectors {
+  map { $shop_connector_by_name{$_} } @shop_connector_order;
+}
+
+sub shop_connector_class_by_name {
+  $shop_connector_by_name{$_[1]};
+}
+
+sub shop_connector_class_by_connector {
+  $shop_connector_by_connector{$_[1]};
+}
+
+sub connectors {
+  \@shop_connectors;
+}
+1;