1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
dataprocessor.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\TradingPlatform\Vk\Feed\Data\Processors;
4
5use Bitrix\Main\ArgumentNullException;
6use Bitrix\Sale\TradingPlatform\Vk\Vk;
7use Bitrix\Sale\TradingPlatform\Timer;
8
9abstract 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}
static getInstance()
Определения application.php:98
$data['IS_AVAILABLE']
Определения .description.php:13