Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 168 Revision 1623
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
namespace App\Console\Commands;
3
    namespace App\Console\Commands;
-
 
4
 
Zeile 4... Zeile 5...
4
 
5
    use Illuminate\Console\Command;
5
use Illuminate\Console\Command;
6
    use App\Models\PriceAgency;
6
 
7
 
7
class dump extends Command
8
    class dump extends Command
8
{
9
    {
9
    /**
10
        /**
10
     * The name and signature of the console command.
11
         * The name and signature of the console command.
11
     *
12
         *
Zeile 12... Zeile 13...
12
     * @var string
13
         * @var string
13
     */
14
         */
14
    protected $signature = 'command:dump';
15
        protected $signature = 'command:dump';
15
 
16
 
16
    /**
17
        /**
17
     * The console command description.
18
         * The console command description.
Zeile 18... Zeile 19...
18
     *
19
         *
19
     * @var string
20
         * @var string
20
     */
21
         */
21
    protected $description = 'Erstellt CSV-Dateien für Preisagenturen';
22
        protected $description = 'Erstellt CSV-Dateien für Preisagenturen';
22
 
23
 
23
    /**
24
        /**
24
     * Execute the console command.
25
         * Execute the console command.
25
     *
26
         *
26
     * @return int
27
         * @return int
27
     */
28
         */
28
    public function handle()
29
        public function handle(): int
-
 
30
        {
29
    {
31
            $agencies = PriceAgency::where( 'shops_id', $GLOBALS["INI"]["shops_ID"] )->get();
30
	    $agencies = \App\Models\PriceAgency::all();
32
            foreach ( $agencies as $agency )
31
	    foreach($agencies as $agency)
-