Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paginator.php
1
<?php
2
3
namespace
Bitrix\Seo\Retargeting
;
4
5
class
Paginator
implements
\IteratorAggregate
6
{
8
private
$request;
9
11
private
$params;
12
17
public
function
__construct
(
18
Request
$request,
19
array $params
20
)
21
{
22
$this->request = $request;
23
$this->params = $params;
24
}
25
30
public
function
getIterator
() : \Generator
31
{
32
do
33
{
34
$response = $this->request->send($this->params);
35
36
$next = $response instanceof
PagingInterface
&& $this->params = $response->
prepareRequestParams
($this->params);
37
38
yield $response;
39
}
40
while
($next);
41
}
42
}
Bitrix\Main\Request
Definition
request.php:10
Bitrix\Seo\Retargeting\Paginator
Definition
paginator.php:6
Bitrix\Seo\Retargeting\Paginator\getIterator
getIterator()
Definition
paginator.php:30
Bitrix\Seo\Retargeting\Paginator\__construct
__construct(Request $request, array $params)
Definition
paginator.php:17
Bitrix\Seo\Retargeting\PagingInterface
Definition
paginginterface.php:6
Bitrix\Seo\Retargeting\PagingInterface\prepareRequestParams
prepareRequestParams(array $params)
Bitrix\Seo\Retargeting
Definition
account.php:3
modules
seo
lib
retargeting
paginator.php
Создано системой
1.10.0