Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
simplearray.php
1
<?php
2
3
namespace
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources
;
4
5
class
SimpleArray
extends
DataSource
implements \Iterator
6
{
7
protected
$data
= array();
8
protected
$currentPos
= 0;
9
10
public
function
current
()
11
{
12
return
$this->data[
$this->currentPos
];
13
}
14
15
public
function
key
()
16
{
17
return
$this->currentPos
;
18
}
19
20
public
function
next
()
21
{
22
$this->currentPos++;
23
}
24
25
public
function
rewind
()
26
{
27
$this->currentPos = 0;
28
}
29
30
public
function
valid
()
31
{
32
return
isset($this->data[$this->currentPos]) && !empty($this->data[$this->currentPos]);
33
}
34
35
public
function
setData
(array
$data
)
36
{
37
$this->data =
$data
;
38
}
39
}
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\DataSource
Definition
datasource.php:6
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray
Definition
simplearray.php:6
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\$currentPos
$currentPos
Definition
simplearray.php:8
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\$data
$data
Definition
simplearray.php:7
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\key
key()
Definition
simplearray.php:15
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\setData
setData(array $data)
Definition
simplearray.php:35
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\valid
valid()
Definition
simplearray.php:30
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\next
next()
Definition
simplearray.php:20
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\rewind
rewind()
Definition
simplearray.php:25
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources\SimpleArray\current
current()
Definition
simplearray.php:10
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Sources
Definition
datasource.php:3
modules
sale
lib
tradingplatform
ebay
feed
data
sources
simplearray.php
Создано системой
1.10.0