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