PluginProbe
MBE eShip / trunk
MBE eShip vtrunk
2.8.1 trunk 1.0.0 1.1.0 1.1.3 1.2.1 1.2.2 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.7.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.2.1 All 37 releases
mail-boxes-etc / lib / Factories / CsvEditorEntityFactory.php

CsvEditorEntityFactory.php in MBE eShip trunk, at lib/Factories/CsvEditorEntityFactory.php

23 lines 761 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Mbe_Csv_Editor_Model_Factory {
4 public function create($editorCsvType)
5 {
6 if(!empty($editorCsvType)) {
7 switch ( strtolower( $editorCsvType ) ) {
8 case 'packages':
9 require_once( MBE_ESHIP_PLUGIN_DIR . 'includes/class-mbe-csv-editor-package.php' );
10 return new \Mbe_Shipping_Csv_Editor_Package();
11 case 'packages-products':
12 require_once( MBE_ESHIP_PLUGIN_DIR . 'includes/class-mbe-csv-editor-package-product.php' );
13 return new \Mbe_Shipping_Csv_Editor_Package_Product();
14 case 'pickup-addresses':
15 require_once( MBE_ESHIP_PLUGIN_DIR . 'includes/class-mbe-csv-editor-pickup-addresses.php' );
16 return new \Mbe_Shipping_Csv_Editor_Pickup_Addresses();
17 default:
18 return false;
19 }
20 }
21 return false;
22 }
23 }