• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/api/photouploader.php
  • Класс: BitrixSaleTradingPlatformVkApiPhotoUploader
  • Вызов: PhotoUploader::__construct
public function __construct($exportId, $photoType, Timer $timer = null)
{
	if (empty($exportId))
	{
		throw new ArgumentNullException('exportId');
	}
	
	if (empty($photoType))
	{
		throw new ArgumentNullException('photoType');
	}
	
	$this->exportId = $exportId;
	$this->type = $photoType;
	$this->timer = $timer;
	$this->vk = Vk::getInstance();
	$this->vkGroupId = $this->vk->getGroupId($this->exportId);
	$this->api = $this->vk->getApi($exportId);
	$this->logger = new Logger($this->exportId);
	
	$this->initByType();
}