Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 148 Revision 150
Zeile 213... Zeile 213...
213
                // If the index has been specified on the given column, but is simply equal
213
                // If the index has been specified on the given column, but is simply equal
214
                // to "true" (boolean), no name has been specified for this index so the
214
                // to "true" (boolean), no name has been specified for this index so the
215
                // index method can be called without a name and it will generate one.
215
                // index method can be called without a name and it will generate one.
216
                if ($column->{$index} === true) {
216
                if ($column->{$index} === true) {
217
                    $this->{$index}($column->name);
217
                    $this->{$index}($column->name);
218
                    $column->{$index} = false;
218
                    $column->{$index} = null;
-
 
219
 
-
 
220
                    continue 2;
-
 
221
                }
-
 
222
 
-
 
223
                // If the index has been specified on the given column, but it equals false
-
 
224
                // and the column is supposed to be changed, we will call the drop index
-
 
225
                // method with an array of column to drop it by its conventional name.
-
 
226
                elseif ($column->{$index} === false && $column->change) {
-
 
227
                    $this->{'drop'.ucfirst($index)}([$column->name]);
-
 
228
                    $column->{$index} = null;
Zeile 219... Zeile 229...
219
 
229
 
220
                    continue 2;
230
                    continue 2;
Zeile 221... Zeile 231...
221
                }
231
                }
222
 
232
 
223
                // If the index has been specified on the given column, and it has a string
233
                // If the index has been specified on the given column, and it has a string
224
                // value, we'll go ahead and call the index method and pass the name for
234
                // value, we'll go ahead and call the index method and pass the name for
225
                // the index since the developer specified the explicit name for this.
235
                // the index since the developer specified the explicit name for this.
226
                elseif (isset($column->{$index})) {
236
                elseif (isset($column->{$index})) {
Zeile 227... Zeile 237...
227
                    $this->{$index}($column->name, $column->{$index});
237
                    $this->{$index}($column->name, $column->{$index});
228
                    $column->{$index} = false;
238
                    $column->{$index} = null;
229
 
239
 
230
                    continue 2;
240
                    continue 2;