framework/db/DBObject.php 1 location
|
@@ 459-463 (lines=5) @@
|
456 |
|
* @return DBObject Current object. |
457 |
|
*/ |
458 |
|
public function limit($offset = 1, $count = null) { |
459 |
|
if (is_null($count)) { |
460 |
|
$this->dbQuery->limit = $offset; |
461 |
|
} else { |
462 |
|
$this->dbQuery->limit = [$offset, $count]; |
463 |
|
} |
464 |
|
|
465 |
|
return $this; |
466 |
|
} |
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; |