@@ 155-166 (lines=12) @@ | ||
152 | * |
|
153 | * @throws Exception |
|
154 | */ |
|
155 | public function setLimit($limit) |
|
156 | { |
|
157 | $isChanged = $this->limit != $limit; |
|
158 | ||
159 | $this->limit = $limit; |
|
160 | ||
161 | if ($isChanged && $this->loadStatus == 200) { |
|
162 | $this->load(true); |
|
163 | } |
|
164 | ||
165 | return $this; |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * Загрузка коллекции |
|
@@ 261-272 (lines=12) @@ | ||
258 | * |
|
259 | * @throws Exception |
|
260 | */ |
|
261 | public function setOffset($offset) |
|
262 | { |
|
263 | $isChanged = $this->offset != $offset; |
|
264 | ||
265 | $this->offset = $offset; |
|
266 | ||
267 | if ($isChanged && $this->loadStatus == 200) { |
|
268 | $this->load(true); |
|
269 | } |
|
270 | ||
271 | return $this; |
|
272 | } |
|
273 | ||
274 | /** |
|
275 | * Получение количества всех элементов без учета лимита |