• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/logger.php
  • Класс: BitrixSaleTradingPlatformVkLogger
  • Вызов: Logger::clearOneError
public function clearOneError($errCode)
{
//		prepare code from errors list
	$errorDescription = $this->getErrorsDescriptions($errCode);

//		clear all code format: number and string. Need for errors code aliases
	$errCodes = array();
	$errCodes[$errorDescription['CODE']] = $errorDescription['CODE'];
	$errCodes[$errCode] = $errCode;

//		remove error from log table
	$resErrId = LogTable::getList(array('filter' => array("EXPORT_ID" => $this->exportId, "ERROR_CODE" => $errCodes)));
	while ($err = $resErrId->fetch())
	{
		$errId = $err["ID"];
		LogTable::delete($errId);
	}
}