• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/journal.php
  • Класс: BitrixSaleTradingPlatformVkJournal
  • Вызов: Journal::addItemsCount
public function addItemsCount($count)
{
	$journal = $this->getJournal();

//		existing journal - increment count
	if (isset($journal[$this->type]["START"]) && !isset($journal[$this->type]["END"]))
	{
		$journal[$this->type]["COUNT"] = intval($journal[$this->type]["COUNT"]) + intval($count);
	}

//		if not set START or set both START and END - it is new item, init them
	else
	{
		$journal[$this->type] = array(
			"START" => time(),
			"COUNT" => intval($count),
		);
		unset($journal[$this->type]["END"], $journal[$this->type]["ABORT"]);
	}
	
	$resUpdate = ExportProfileTable::update($this->exportId, array("JOURNAL" => $journal));
	
	return $resUpdate->isSuccess();
}