| @@ 98-100 (lines=3) @@ | ||
| 95 | if (!empty($this->order)) { |
|
| 96 | $this->query.= " ORDER BY"; |
|
| 97 | if (is_array($this->order)) { |
|
| 98 | foreach ($this->order as $fieldName => $ord) { |
|
| 99 | $this->query.= " " . $fieldName . " " . $ord . ","; |
|
| 100 | } |
|
| 101 | $this->query = substr($this->query, 0, strlen($this->query) - 1); |
|
| 102 | } elseif (is_string($this->order)) { |
|
| 103 | $this->query.= " " . $this->order; |
|
| @@ 519-521 (lines=3) @@ | ||
| 516 | if (!empty($this->dbQuery->order)) { |
|
| 517 | $this->dbQuery->query.= " ORDER BY"; |
|
| 518 | if (is_array($this->dbQuery->order)) { |
|
| 519 | foreach ($this->dbQuery->order as $fieldName => $ord) { |
|
| 520 | $this->dbQuery->query.= " " . $fieldName . " " . $ord . ","; |
|
| 521 | } |
|
| 522 | $this->dbQuery->query = substr($this->dbQuery->query, 0, strlen($this->dbQuery->query) - 1); |
|
| 523 | } elseif (is_string($this->dbQuery->order)) { |
|
| 524 | $this->dbQuery->query.= " " . $this->dbQuery->order; |
|