Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1646 Revision 1647
Zeile 27... Zeile 27...
27
         *
27
         *
28
         * @return void
28
         * @return void
29
         */
29
         */
30
        public function handle(): void
30
        public function handle(): void
31
        {
31
        {
-
 
32
            $records = 0;
32
            $items = Item::with( 'price', 'medium.medium', "manufacturer" )->where( 'status', 0 )->get();
33
            $items = Item::with( 'price', 'medium.medium', "manufacturer" )->where( 'status', 0 )->get();
33
            $agencies = PriceAgency::where( 'shop_id', $GLOBALS["INI"]["shops_ID"] )->where( "status", "1" )->get();
34
            $agencies = PriceAgency::where( 'shop_id', $GLOBALS["INI"]["shops_ID"] )->where( "status", "1" )->get();
34
            foreach ( $agencies as $agency )
35
            foreach ( $agencies as $agency )
35
            {
36
            {
36
                $content = array();
37
                $content = array();
Zeile 141... Zeile 142...
141
                        }
142
                        }
Zeile 142... Zeile 143...
142
 
143
 
143
                        $buffer[] = $quote . $col . $quote;
144
                        $buffer[] = $quote . $col . $quote;
144
                    } // foreach
145
                    } // foreach
-
 
146
                    fwrite( $f, implode( $trenner, $buffer ) . "\n" );
145
                    fwrite( $f, implode( $trenner, $buffer ) . "\n" );
147
                    $records++;
146
                }
148
                }
147
                if ( $suffix )
149
                if ( $suffix )
148
                {
150
                {
149
                    fwrite( $f, $suffix . "\n" );
151
                    fwrite( $f, $suffix . "\n" );
150
                }
152
                }
-
 
153
                fclose( $f );
-
 
154
                rename( $fName, public_path( "preisagentur/" ) . basename( $fName ) );
-
 
155
                $agency->records = $records;
151
                fclose( $f );
156
                $agency->save();
152
            }
157
            }
153
        }
158
        }