• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/orderhistory.php
  • Класс: BitrixSaleOrderHistory
  • Вызов: OrderHistory::getOperationType
static function getOperationType($entityName, $type)
{
	if (!empty(CSaleOrderChangeFormat::$operationTypes)
		&& !empty(CSaleOrderChangeFormat::$operationTypes[$type])
	)
	{
		if (!empty(CSaleOrderChangeFormat::$operationTypes[$type]['ENTITY'])
			&& $entityName == CSaleOrderChangeFormat::$operationTypes[$type]['ENTITY'])
		{
			return CSaleOrderChangeFormat::$operationTypes[$type];
		}
	}

	return false;
}