Skip to content

Commit 3aa1191

Browse files
committed
* "Status" class: "getList" function: added $OFFSET parameter
1 parent 270fe89 commit 3aa1191

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.6",
15+
"php": ">=5.3.2",
1616
"ext-json": "*",
1717
"ext-curl": "*",
1818
"psr/log": "^1.0"

src/classes/crm/status/status.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,14 @@ public function get($id)
230230
* @throws \Bitrix24\Exceptions\Bitrix24EmptyResponseException
231231
* @throws \Bitrix24\Exceptions\Bitrix24ApiException
232232
*/
233-
public function getList($order, $filter)
233+
public function getList($order, $filter, $offset = 0)
234234
{
235235
$fullResult = $this->client->call(
236236
'crm.status.list',
237237
[
238238
'order' => $order,
239-
'filter' => $filter
239+
'filter' => $filter,
240+
'start' => $offset
240241
]
241242
);
242243
return $fullResult;

0 commit comments

Comments
 (0)