@@ 753-764 (lines=12) @@ | ||
750 | * |
|
751 | * @return self |
|
752 | */ |
|
753 | public function select($select = null) |
|
754 | { |
|
755 | $this->_type = self::SELECT; |
|
756 | ||
757 | if (empty($select)) { |
|
758 | return $this; |
|
759 | } |
|
760 | ||
761 | $selects = is_array($select) ? $select : func_get_args(); |
|
762 | ||
763 | return $this->add('select', new Expr\Select($selects), false); |
|
764 | } |
|
765 | ||
766 | /** |
|
767 | * Adds a DISTINCT flag to this query. |
|
@@ 802-813 (lines=12) @@ | ||
799 | * |
|
800 | * @return self |
|
801 | */ |
|
802 | public function addSelect($select = null) |
|
803 | { |
|
804 | $this->_type = self::SELECT; |
|
805 | ||
806 | if (empty($select)) { |
|
807 | return $this; |
|
808 | } |
|
809 | ||
810 | $selects = is_array($select) ? $select : func_get_args(); |
|
811 | ||
812 | return $this->add('select', new Expr\Select($selects), true); |
|
813 | } |
|
814 | ||
815 | /** |
|
816 | * Turns the query being built into a bulk delete query that ranges over |