| @@ 60-69 (lines=10) @@ | ||
| 57 | * @return $this |
|
| 58 | * @access protected |
|
| 59 | */ |
|
| 60 | protected function realGroupBy($col, /*# bool */ $rawMode = false) |
|
| 61 | { |
|
| 62 | if (is_array($col)) { |
|
| 63 | $this->multipleGroupBy($col); |
|
| 64 | } else { |
|
| 65 | $clause = &$this->getClause('GROUP BY'); |
|
| 66 | $clause[] = [$col, $this->isRaw($col, $rawMode)]; |
|
| 67 | } |
|
| 68 | return $this; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Multitple groupbys |
|
| @@ 71-83 (lines=13) @@ | ||
| 68 | * @return $this |
|
| 69 | * @access protected |
|
| 70 | */ |
|
| 71 | protected function realOrderBy( |
|
| 72 | $col, |
|
| 73 | /*# sting */ $suffix = 'ASC', |
|
| 74 | /*# bool */ $rawMode = false |
|
| 75 | ) { |
|
| 76 | if (is_array($col)) { |
|
| 77 | $this->multipleOrderBy($col); |
|
| 78 | } else { |
|
| 79 | $clause = &$this->getClause('ORDER BY'); |
|
| 80 | $clause[] = [$col, $suffix, $this->isRaw($col, $rawMode)]; |
|
| 81 | } |
|
| 82 | return $this; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Build ORDER BY |
|