| @@ 741-752 (lines=12) @@ | ||
| 738 | * |
|
| 739 | * @return self |
|
| 740 | */ |
|
| 741 | public function select($select = null) |
|
| 742 | { |
|
| 743 | $this->_type = self::SELECT; |
|
| 744 | ||
| 745 | if (empty($select)) { |
|
| 746 | return $this; |
|
| 747 | } |
|
| 748 | ||
| 749 | $selects = is_array($select) ? $select : func_get_args(); |
|
| 750 | ||
| 751 | return $this->add('select', new Expr\Select($selects), false); |
|
| 752 | } |
|
| 753 | ||
| 754 | /** |
|
| 755 | * Adds a DISTINCT flag to this query. |
|
| @@ 790-801 (lines=12) @@ | ||
| 787 | * |
|
| 788 | * @return self |
|
| 789 | */ |
|
| 790 | public function addSelect($select = null) |
|
| 791 | { |
|
| 792 | $this->_type = self::SELECT; |
|
| 793 | ||
| 794 | if (empty($select)) { |
|
| 795 | return $this; |
|
| 796 | } |
|
| 797 | ||
| 798 | $selects = is_array($select) ? $select : func_get_args(); |
|
| 799 | ||
| 800 | return $this->add('select', new Expr\Select($selects), true); |
|
| 801 | } |
|
| 802 | ||
| 803 | /** |
|
| 804 | * Turns the query being built into a bulk delete query that ranges over |
|