| @@ 78-94 (lines=17) @@ | ||
| 75 | * @return $this |
|
| 76 | * @access protected |
|
| 77 | */ |
|
| 78 | protected function realGroup( |
|
| 79 | $col, |
|
| 80 | /*# sting */ $suffix = '', |
|
| 81 | /*# bool */ $rawMode = false) |
|
| 82 | { |
|
| 83 | if (is_array($col)) { |
|
| 84 | $this->multipleGroup($col, $suffix); |
|
| 85 | } else { |
|
| 86 | $clause = &$this->getClause('GROUP BY'); |
|
| 87 | $part = [$col, $this->isRaw($col, $rawMode)]; |
|
| 88 | if (!empty($suffix)) { |
|
| 89 | $part[] = $suffix; |
|
| 90 | } |
|
| 91 | $clause[] = $part; |
|
| 92 | } |
|
| 93 | return $this; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Multitple groupbys |
|
| @@ 77-93 (lines=17) @@ | ||
| 74 | * @return $this |
|
| 75 | * @access protected |
|
| 76 | */ |
|
| 77 | protected function realOrder( |
|
| 78 | $col, |
|
| 79 | /*# sting */ $suffix = 'ASC', |
|
| 80 | /*# bool */ $rawMode = false |
|
| 81 | ) { |
|
| 82 | if (is_array($col)) { |
|
| 83 | $this->multipleOrder($col, $suffix); |
|
| 84 | } else { |
|
| 85 | $clause = &$this->getClause('ORDER BY'); |
|
| 86 | $part = [$col, $this->isRaw($col, $rawMode)]; |
|
| 87 | if (!empty($suffix)) { |
|
| 88 | $part[] = $suffix; |
|
| 89 | } |
|
| 90 | $clause[] = $part; |
|
| 91 | } |
|
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Multitple orderbys |
|