• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/sku.php
  • Класс: BitrixCatalogProductSku
  • Вызов: Sku::updateElements
static function updateElements(array $listIds): void
{
	if (self::isSeparateSkuMode())
	{
		return;
	}
	$conn = BitrixMainApplication::getConnection();
	if (self::$queryElementTimestamp === null)
	{
		$helper = $conn->getSqlHelper();
		self::$queryElementTimestamp = 'update ' . $helper->quote(BitrixIblockElementTable::getTableName())
			. ' set ' . $helper->quote('TIMESTAMP_X') . ' = ' . $helper->getCurrentDateTimeFunction()
			. ' where ' . $helper->quote('ID') . '=';
	}
	foreach ($listIds as $id)
	{
		if (empty(self::$deferredSku[$id][self::ACTION_ELEMENT_TIMESTAMP]))
			continue;
		$conn->queryExecute(self::$queryElementTimestamp . $id);
	}
}