• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/ebay/feed/data/processors/sftpqueue.php
  • Класс: BitrixSaleTradingPlatformEbayFeedDataProcessorsSftpQueue
  • Вызов: SftpQueue::sendData
public function sendData()
{
	$xmlFile = $this->flushData();

	if(!$xmlFile)
		return false;

	$tmpFile = $this->packData($xmlFile);
	$zipFile = new BitrixMainIOFile($tmpFile);
	$zipFile->rename($this->path."/zip/".$this->feedType."_".$this->fileNameSalt.".zip");
	$this->sendDataSftp();

	$checkResultsInterval = 5; //min.
	BitrixSaleTradingPlatformEbayAgent::add('RESULTS', $this->siteId, $checkResultsInterval, true);

	return true;
}