• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
  • Класс: CIBlockCMLImport
  • Вызов: CIBlockCMLImport::updateCounters
public function updateCounters(array $counters): int
{
	$result = 0;

	if (!isset($this->next_step["DONE"]))
		$this->next_step["DONE"] = [];
	foreach ($counters as $index => $value)
	{
		if (!isset($this->next_step["DONE"][$index]))
			$this->next_step["DONE"][$index] = 0;
		$value = (int)$value;
		$this->next_step["DONE"][$index] += $value;
		$result += $value;
	}
	unset($index, $value);

	return $result;
}