framework/db/DBPreparedQuery.php 1 location
|
@@ 165-171 (lines=7) @@
|
162 |
|
} |
163 |
|
$this->prepareOrder(); |
164 |
|
|
165 |
|
if (!is_null($offset)) { |
166 |
|
if (is_null($count)) { |
167 |
|
$this->dbQuery->limit = $offset; |
168 |
|
} else { |
169 |
|
$this->dbQuery->limit = [$offset, $count]; |
170 |
|
} |
171 |
|
} |
172 |
|
$this->prepareLimit(); |
173 |
|
|
174 |
|
return $this; |
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 |
|
} |