public function sendData() { $xmlFile = $this->flushData(); if (!$xmlFile) { return false; } $tmpFile = $this->packData($xmlFile); $zipFile = new \Bitrix\Main\IO\File($tmpFile); $zipFile->rename($this->path . "/zip/" . $this->feedType . "_" . $this->fileNameSalt . ".zip"); $this->sendDataSftp(); $checkResultsInterval = 5; //min. \Bitrix\Sale\TradingPlatform\Ebay\Agent::add('RESULTS', $this->siteId, $checkResultsInterval, true); return true; }