Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 280 Revision 281
Zeile 94... Zeile 94...
94
                $dir->status = $row->status;
94
                $dir->status = $row->status;
95
                $dir->kennung = $row->kennung;
95
                $dir->kennung = $row->kennung;
96
                $dir->description = $row->beschreibung;
96
                $dir->description = $row->beschreibung;
97
                $dir->created_at = $row->erstellt_am;
97
                $dir->created_at = $row->erstellt_am;
98
                $dir->updated_at = $row->letzte_Aenderung_am;
98
                $dir->updated_at = $row->letzte_Aenderung_am;
-
 
99
                if ( $row->erstellt_von )
-
 
100
                {
99
                $dir->created_by = $row->erstellt_von;
101
                    $dir->created_by = $row->erstellt_von;
-
 
102
                }
-
 
103
                if ( $row->letzte_Aenderung_von )
-
 
104
                {
100
                $dir->updated_by = $row->letzte_Aenderung_von;
105
                    $dir->updated_by = $row->letzte_Aenderung_von;
-
 
106
                }
101
                $dir->save();
107
                $dir->save();
102
            }
108
            }
103
            $sql = "
109
            $sql = "
104
                SELECT
110
                SELECT
105
                    p.*
111
                    p.*
Zeile 119... Zeile 125...
119
                    "item_id"     => $price->artikel_id,
125
                    "item_id"     => $price->artikel_id,
120
                    "preis_index" => $price->preis_index,
126
                    "preis_index" => $price->preis_index,
121
                    "preis"       => $price->preis,
127
                    "preis"       => $price->preis,
122
                    "staffel"     => $price->staffel,
128
                    "staffel"     => $price->staffel,
123
                    "created_at"  => $price->geaendert_am,
129
                    "created_at"  => $price->geaendert_am,
124
                    "created_by"  => $row->erstellt_von,
130
                    "created_by"  => $price->erstellt_von,
125
                    "updated_by"  => $row->letzte_Aenderung_von,
131
                    "updated_by"  => $price->letzte_Aenderung_von,
126
                    "updated_at"  => $price->geaendert_am
132
                    "updated_at"  => $price->geaendert_am
127
                ] );
133
                ] );
128
            }
134
            }
Zeile 129... Zeile 135...
129
 
135
 
Zeile 149... Zeile 155...
149
                $actionDB->config = $action->config;
155
                $actionDB->config = $action->config;
150
                $actionDB->category = $action->Kategorie;
156
                $actionDB->category = $action->Kategorie;
151
                $actionDB->notes = $action->notizen;
157
                $actionDB->notes = $action->notizen;
152
                $actionDB->valid_from = $action->von;
158
                $actionDB->valid_from = $action->von;
153
                $actionDB->valid_to = $action->bis;
159
                $actionDB->valid_to = $action->bis;
-
 
160
                if ( $action->erstellt_von )
-
 
161
                {
154
                $actionDB->created_by = $action->erstellt_von;
162
                    $actionDB->created_by = $action->erstellt_von;
-
 
163
                }
-
 
164
                if ( $action->letzte_Aenderung_von )
-
 
165
                {
155
                $actionDB->updated_by = $action->letzte_Aenderung_von;
166
                    $actionDB->updated_by = $action->letzte_Aenderung_von;
-
 
167
                }
156
                $actionDB->save();
168
                $actionDB->save();
157
            }
169
            }
158
        }
170
        }
Zeile 159... Zeile 171...
159
 
171
 
Zeile 177... Zeile 189...
177
                $mediumDB->description = $medium->beschreibung;
189
                $mediumDB->description = $medium->beschreibung;
178
                if ( $medium->erstellt_am )
190
                if ( $medium->erstellt_am )
179
                {
191
                {
180
                    $mediumDB->created_at = date( "Y-m-d H:i:s", $medium->erstellt_am );
192
                    $mediumDB->created_at = date( "Y-m-d H:i:s", $medium->erstellt_am );
181
                }
193
                }
182
                $mediumDB->created_by = $medium->erstellt_von;
194
                $ersteller = $medium->erstellt_von;
-
 
195
                if ( !$ersteller )
-
 
196
                {
-
 
197
                    $ersteller = "WebanOS Laravel Upgrade";
-
 
198
                }
183
                $mediumDB->updated_by = $medium->letzte_aenderung_von;
199
                $bearbeiter = $medium->letzte_aenderung_von;
-
 
200
                if ( !$bearbeiter )
-
 
201
                {
-
 
202
                    $bearbeiter = "WebanOS Laravel Upgrade";
-
 
203
                }
-
 
204
                $mediumDB->created_by = $ersteller;
-
 
205
                $mediumDB->updated_by = $bearbeiter;
184
                $mediumDB->save();
206
                $mediumDB->save();
185
            }
207
            }
186
        }
208
        }
187
    }
209
    }