Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1602 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1602 Revision 1603
Zeile 1346... Zeile 1346...
1346
            $templates = DB::connection( 'old' )->select( $sql );
1346
            $templates = DB::connection( 'old' )->select( $sql );
1347
            $progressbar = $this->output->createProgressBar( count( $templates ) );
1347
            $progressbar = $this->output->createProgressBar( count( $templates ) );
1348
            $progressbar->start();
1348
            $progressbar->start();
1349
            foreach ( $templates as $template )
1349
            foreach ( $templates as $template )
1350
            {
1350
            {
1351
                switch ( $template->Typ )
1351
                $typ = match ( $template->Typ )
1352
                {
1352
                {
1353
                    case "Aktionen":
-
 
1354
                        $typ = "action";
1353
                    "Aktionen"     => "action",
1355
                        break;
-
 
1356
                    case "artikel":
-
 
1357
                        $typ = "item";
1354
                    "artikel"      => "item",
1358
                        break;
-
 
1359
                    case "directory":
-
 
1360
                        $typ = "directory";
1355
                    "directory"    => "directory",
1361
                        break;
-
 
1362
                    case "Artikelstamm":
-
 
1363
                        $typ = "articlemaster";
1356
                    "Artikelstamm" => "articlemaster",
1364
                        break;
-
 
1365
                    default:
-
 
1366
                        $typ = "";
1357
                    default        => "",
1367
                }
1358
                };
1368
                Template::factory()->create( [
1359
                Template::factory()->create( [
1369
                    "id"             => $template->ID,
1360
                    "id"             => $template->ID,
1370
                    "shop_id"        => $template->shops_ID,
1361
                    "shop_id"        => $template->shops_ID,
1371
                    "name"           => $template->Name,
1362
                    "name"           => $template->Name,
1372
                    "description"    => $template->Beschreibung,
1363
                    "description"    => $template->Beschreibung,