X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FShopConnector%2FALL.pm;fp=SL%2FShopConnector%2FALL.pm;h=1b1b0c81496d11bbd85b31a5e9c131a0c8549611;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=0000000000000000000000000000000000000000;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;p=kivitendo-erp.git diff --git a/SL/ShopConnector/ALL.pm b/SL/ShopConnector/ALL.pm new file mode 100644 index 000000000..1b1b0c814 --- /dev/null +++ b/SL/ShopConnector/ALL.pm @@ -0,0 +1,39 @@ +package SL::ShopConnector::ALL; + +use strict; + +use SL::ShopConnector::Shopware; +use SL::ShopConnector::Shopware6; +use SL::ShopConnector::WooCommerce; + +my %shop_connector_by_name = ( + shopware => 'SL::ShopConnector::Shopware', + shopware6 => 'SL::ShopConnector::Shopware6', + woocommerce => 'SL::ShopConnector::WooCommerce', +); + +my @shop_connector_order = qw( + woocommerce + shopware + shopware6 +); + +my @shop_connectors = ( + { id => "shopware", description => "Shopware" }, + { id => "shopware6", description => "Shopware6" }, + { id => "woocommerce", description => "WooCommerce" }, +); + + +sub all_shop_connectors { + map { $shop_connector_by_name{$_} } @shop_connector_order; +} + +sub shop_connector_class_by_name { + $shop_connector_by_name{$_[1]}; +} + +sub connectors { + \@shop_connectors; +} +1;