Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
dataprocessor.php
1
<?php
2
3
namespace
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors
;
4
5
use
Bitrix\Main\ArgumentNullException
;
6
use
Bitrix\Sale\TradingPlatform\Vk\Vk
;
7
use
Bitrix\Sale\TradingPlatform\Timer
;
8
9
abstract
class
DataProcessor
10
{
11
protected
static
$vk
;
12
protected
$api
;
13
protected
$executer
;
14
protected
$vkGroupId
;
15
protected
$exportId
;
16
17
abstract
public
function
process
($data,
Timer
$timer = NULL);
18
23
public
function
__construct
(
$exportId
)
24
{
25
self::$vk =
Vk::getInstance
();
26
27
if
(!isset(
$exportId
) ||
$exportId
==
''
)
28
throw
new
ArgumentNullException
(
"EXPORT_ID"
);
29
else
30
$this->exportId =
$exportId
;
31
32
$this->vkGroupId = self::$vk->getGroupId($this->exportId);
33
$this->api = self::$vk->getApi($this->exportId);
34
$this->executer = self::$vk->getExecuter($this->exportId);
35
}
36
}
Bitrix\Main\ArgumentNullException
Definition
exception.php:54
Bitrix\Sale\TradingPlatform\Timer
Definition
timer.php:10
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor
Definition
dataprocessor.php:10
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\$vk
static $vk
Definition
dataprocessor.php:11
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\__construct
__construct($exportId)
Definition
dataprocessor.php:23
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\$executer
$executer
Definition
dataprocessor.php:13
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\$exportId
$exportId
Definition
dataprocessor.php:15
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\process
process($data, Timer $timer=NULL)
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\$vkGroupId
$vkGroupId
Definition
dataprocessor.php:14
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors\DataProcessor\$api
$api
Definition
dataprocessor.php:12
Bitrix\Sale\TradingPlatform\Vk\Vk
Definition
vk.php:20
Bitrix\Sale\TradingPlatform\Vk\Vk\getInstance
static getInstance()
Definition
vk.php:68
Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors
Definition
albumadd.php:3
modules
sale
lib
tradingplatform
vk
feed
data
processors
dataprocessor.php
Создано системой
1.10.0