| @@ 306-316 (lines=11) @@ | ||
| 303 | $query .= implode(', ', $order_arr).' '; |
|
| 304 | } |
|
| 305 | ||
| 306 | if ($this->limit !== null || $this->offset !== null) { |
|
| 307 | if ($this->offset === null) { |
|
| 308 | $this->offset = 0; |
|
| 309 | } |
|
| 310 | ||
| 311 | if ($this->limit === null) { |
|
| 312 | $this->limit = 9999999999999; |
|
| 313 | } |
|
| 314 | ||
| 315 | $query .= 'LIMIT '.((int) $this->offset).', '.((int) $this->limit).' '; |
|
| 316 | } |
|
| 317 | ||
| 318 | $this->query = trim($query); |
|
| 319 | ||
| @@ 605-615 (lines=11) @@ | ||
| 602 | $query .= implode(', ', $order_arr).' '; |
|
| 603 | } |
|
| 604 | ||
| 605 | if ($this->limit !== null || $this->offset !== null) { |
|
| 606 | if ($this->offset === null) { |
|
| 607 | $this->offset = 0; |
|
| 608 | } |
|
| 609 | ||
| 610 | if ($this->limit === null) { |
|
| 611 | $this->limit = 9999999999999; |
|
| 612 | } |
|
| 613 | ||
| 614 | $query .= 'LIMIT '.((int) $this->offset).', '.((int) $this->limit).' '; |
|
| 615 | } |
|
| 616 | ||
| 617 | if (!empty($this->options)) { |
|
| 618 | $options = array(); |
|