- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/propertyvalue.php
- Класс: BitrixSalePropertyValue
- Вызов: PropertyValue::addToLog
private function addToLog($type, $fields)
{
/** @var PropertyValueCollection $propertyCollection */
$propertyCollection = $this->getCollection();
/** @var OrderBase $order */
if (!$order = $propertyCollection->getOrder())
{
throw new MainObjectNotFoundException('Entity "Order" not found');
}
$registry = Registry::getInstance(static::getRegistryType());
/** @var OrderHistory $orderHistory */
$orderHistory = $registry->getOrderHistoryClassName();
$orderHistory::addLog(
'PROPERTY',
$order->getId(),
$type,
$this->getId(),
$this,
$fields,
$orderHistory::SALE_ORDER_HISTORY_LOG_LEVEL_1
);
}