| @@ 95-102 (lines=8) @@ | ||
| 92 | public function join($table, $where = false, $type = 'LEFT', $alias = '') |
|
| 93 | { |
|
| 94 | if (is_array($table)) { |
|
| 95 | foreach ($table as $item) { |
|
| 96 | if (!is_array($item)) { |
|
| 97 | call_user_func_array(array($this, 'join'), $table); |
|
| 98 | break; |
|
| 99 | } else { |
|
| 100 | $this->join($item); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | } else { |
|
| 104 | $this->join[] = [$table, $where, $type, $alias]; |
|
| 105 | } |
|
| @@ 129-134 (lines=6) @@ | ||
| 126 | if (!is_array($order)) { |
|
| 127 | $this->order[] = "{$order} {$type}"; |
|
| 128 | } else { |
|
| 129 | foreach ($order as $item) |
|
| 130 | if (!is_array($item)) { |
|
| 131 | call_user_func_array(array($this, 'order'), $order); |
|
| 132 | break; |
|
| 133 | } else |
|
| 134 | $this->order($item); |
|
| 135 | } |
|
| 136 | } |
|
| 137 | ||