Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 602 | Revision 604 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 602 Revision 603
Zeile 1331... Zeile 1331...
1331
            $templates = DB::connection( 'old' )->select( $sql );
1331
            $templates = DB::connection( 'old' )->select( $sql );
1332
            $progressbar = $this->output->createProgressBar( count( $templates ) );
1332
            $progressbar = $this->output->createProgressBar( count( $templates ) );
1333
            $progressbar->start();
1333
            $progressbar->start();
1334
            foreach ( $templates as $template )
1334
            foreach ( $templates as $template )
1335
            {
1335
            {
-
 
1336
                switch ( $template->Typ )
-
 
1337
                {
-
 
1338
                    case "Aktionen":
-
 
1339
                        $typ = "action";
-
 
1340
                        break;
-
 
1341
                    case "artikel":
-
 
1342
                        $typ = "item";
-
 
1343
                        break;
-
 
1344
                    case "directory":
-
 
1345
                        $typ = "directory";
-
 
1346
                        break;
-
 
1347
                    case "Artikelstamm":
-
 
1348
                        $typ = "articlemaster";
-
 
1349
                        break;
-
 
1350
                    default:
-
 
1351
                        $typ = "";
-
 
1352
                }
1336
                Template::factory()->create( [
1353
                Template::factory()->create( [
1337
                    "id"             => $template->ID,
1354
                    "id"             => $template->ID,
1338
                    "shop_id"        => $template->shops_ID,
1355
                    "shop_id"        => $template->shops_ID,
1339
                    "name"           => $template->Name,
1356
                    "name"           => $template->Name,
1340
                    "description"    => $template->Beschreibung,
1357
                    "description"    => $template->Beschreibung,
1341
                    "template_key"   => $template->templateKey,
1358
                    "template_key"   => $template->templateKey,
1342
                    "template_value" => $template->templateValue,
1359
                    "template_value" => $template->templateValue,
1343
                    "type"           => $template->Typ,
1360
                    "type"           => $typ,
1344
                ] );
1361
                ] );
1345
                $progressbar->advance();
1362
                $progressbar->advance();
1346
            }
1363
            }
1347
            $progressbar->finish();
1364
            $progressbar->finish();
1348
            $progressbar->clear();
1365
            $progressbar->clear();