improve xmacro exporter

This commit is contained in:
2018-07-29 22:47:16 +02:00
parent 8f76ce3569
commit 7746d85e5f
4 changed files with 148 additions and 41 deletions
+6
View File
@@ -9,6 +9,7 @@ use App\Models\User;
use App\Tables\Column;
use App\Tables\CStructArrayExporter;
use App\Tables\CsvExporter;
use App\Tables\CXMacroExporter;
use App\Tables\JsonExporter;
use App\Tables\PhpExporter;
use Illuminate\Http\Request;
@@ -289,6 +290,11 @@ class TableController extends Controller
$exporter = new CStructArrayExporter($tableModel);
break;
case 'xmacro':
$noq = explode(',', $request->input('noq',''));
$exporter = (new CXMacroExporter($tableModel))->noQuotesAround($noq);
break;
case 'php':
$exporter = new PhpExporter($tableModel);
break;