- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/journal.php
- Класс: BitrixSaleTradingPlatformVkJournal
- Вызов: Journal::saveProcessParams
static function saveProcessParams($exportId, $type = false, $position = false, $execCount = false)
{
// save only if not set STOP flag
if (!self::checkStopProcessFlag($exportId))
{
$exportId = EscapePHPString($exportId);
// if set data - update, if not - clear process
$data = array();
if ($type !== false && $position !== false && $execCount !== false)
$data = array(
'TYPE' => $type,
'EXEC_COUNT' => $execCount,
'START_POSITION' => $position,
);
$resUpdate = ExportProfileTable::update($exportId, array("PROCESS" => $data));
return $resUpdate->isSuccess();
}
else
{
return false;
}
}