• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/model/price.php
  • Класс: BitrixCatalogModelPrice
  • Вызов: Price::updateProductModificationTime
static function updateProductModificationTime(int $productId): void
{
	if (!isset(self::$productList[$productId]))
	{
		self::$productList[$productId] = true;
		$conn = MainApplication::getConnection();
		if (self::$queryElementDate === null)
		{
			$helper = $conn->getSqlHelper();
			self::$queryElementDate = 'update ' . $helper->quote(IblockElementTable::getTableName())
				. ' set '.$helper->quote('TIMESTAMP_X') . ' = '.$helper->getCurrentDateTimeFunction()
				. ' where '.$helper->quote('ID') . '=';
		}
		$conn->queryExecute(self::$queryElementDate . $productId);
	}
}