@@ 282-286 (lines=5) @@ | ||
279 | $fields = [$fields]; |
|
280 | } |
|
281 | ||
282 | if ($overwrite) { |
|
283 | $this->_parts['select'] = $fields; |
|
284 | } else { |
|
285 | $this->_parts['select'] = array_merge($this->_parts['select'], $fields); |
|
286 | } |
|
287 | ||
288 | $this->_dirty(); |
|
289 | $this->_type = 'select'; |
|
@@ 411-415 (lines=5) @@ | ||
408 | $tables = [$tables]; |
|
409 | } |
|
410 | ||
411 | if ($overwrite) { |
|
412 | $this->_parts['from'] = $tables; |
|
413 | } else { |
|
414 | $this->_parts['from'] = array_merge($this->_parts['from'], $tables); |
|
415 | } |
|
416 | ||
417 | $this->_dirty(); |
|
418 | return $this; |
|
@@ 535-539 (lines=5) @@ | ||
532 | $joins[$alias ?: $i++] = $t + ['type' => 'INNER', 'alias' => $alias]; |
|
533 | } |
|
534 | ||
535 | if ($overwrite) { |
|
536 | $this->_parts['join'] = $joins; |
|
537 | } else { |
|
538 | $this->_parts['join'] = array_merge($this->_parts['join'], $joins); |
|
539 | } |
|
540 | ||
541 | $this->_dirty(); |
|
542 | return $this; |