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