Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 399 Revision 621
Zeile 99... Zeile 99...
99
     * @var string
99
     * @var string
100
     */
100
     */
101
    public $from;
101
    public $from;
Zeile 102... Zeile 102...
102
 
102
 
-
 
103
    /**
-
 
104
     * The index hint for the query.
-
 
105
     *
-
 
106
     * @var \Illuminate\Database\Query\IndexHint
-
 
107
     */
-
 
108
    public $indexHint;
-
 
109
 
103
    /**
110
    /**
104
     * The table joins for the query.
111
     * The table joins for the query.
105
     *
112
     *
106
     * @var array
113
     * @var array
107
     */
114
     */
Zeile 409... Zeile 416...
409
                    $this->select($this->from.'.*');
416
                    $this->select($this->from.'.*');
410
                }
417
                }
Zeile 411... Zeile 418...
411
 
418
 
412
                $this->selectSub($column, $as);
419
                $this->selectSub($column, $as);
-
 
420
            } else {
-
 
421
                if (is_array($this->columns) && in_array($column, $this->columns, true)) {
-
 
422
                    continue;
-
 
423
                }
413
            } else {
424
 
414
                $this->columns[] = $column;
425
                $this->columns[] = $column;
415
            }
426
            }
Zeile 416... Zeile 427...
416
        }
427
        }
Zeile 453... Zeile 464...
453
 
464
 
454
        return $this;
465
        return $this;
Zeile 455... Zeile 466...
455
    }
466
    }
-
 
467
 
-
 
468
    /**
-
 
469
     * Add an index hint to suggest a query index.
-
 
470
     *
-
 
471
     * @param  string  $index
-
 
472
     * @return $this
-
 
473
     */
-
 
474
    public function useIndex($index)
-
 
475
    {
-
 
476
        $this->indexHint = new IndexHint('hint', $index);
-
 
477
 
-
 
478
        return $this;
-
 
479
    }
-
 
480
 
-
 
481
    /**
-
 
482
     * Add an index hint to force a query index.
-
 
483
     *
-
 
484
     * @param  string  $index
-
 
485
     * @return $this
-
 
486
     */
-
 
487
    public function forceIndex($index)
-
 
488
    {
-
 
489
        $this->indexHint = new IndexHint('force', $index);
-
 
490
 
-
 
491
        return $this;
-
 
492
    }
-
 
493
 
-
 
494
    /**
-
 
495
     * Add an index hint to ignore a query index.
-
 
496
     *
-
 
497
     * @param  string  $index
-
 
498
     * @return $this
-
 
499
     */
-
 
500
    public function ignoreIndex($index)
-
 
501
    {
-
 
502
        $this->indexHint = new IndexHint('ignore', $index);
-
 
503
 
-
 
504
        return $this;
-
 
505
    }
456
 
506
 
457
    /**
507
    /**
458
     * Add a join clause to the query.
508
     * Add a join clause to the query.
459
     *
509
     *
460
     * @param  string  $table
510
     * @param  string  $table