framework/db/DBObject.php 1 location
|
@@ 468-472 (lines=5) @@
|
465 |
|
* @return DBObject Current object. |
466 |
|
*/ |
467 |
|
public function limit($offset = 1, $count = null) { |
468 |
|
if (is_null($count)) { |
469 |
|
$this->dbQuery->limit = $offset; |
470 |
|
} else { |
471 |
|
$this->dbQuery->limit = [$offset, $count]; |
472 |
|
} |
473 |
|
|
474 |
|
return $this; |
475 |
|
} |
framework/db/DBPreparedQuery.php 1 location
|
@@ 169-175 (lines=7) @@
|
166 |
|
} |
167 |
|
$this->prepareOrder(); |
168 |
|
|
169 |
|
if (!is_null($offset)) { |
170 |
|
if (is_null($count)) { |
171 |
|
$this->dbQuery->limit = $offset; |
172 |
|
} else { |
173 |
|
$this->dbQuery->limit = [$offset, $count]; |
174 |
|
} |
175 |
|
} |
176 |
|
$this->prepareLimit(); |
177 |
|
|
178 |
|
return $this; |