Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
dataprocessor.php
1<?php
2
4
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}