• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/orderhistory.php
  • Класс: BitrixSaleOrderHistory
  • Вызов: OrderHistory::addAction
static function addAction($entityName, $orderId, $type, $id = null, $entity = null, array $fields = array(), $level = null)
{
	if ($level === null)
	{
		$level = static::SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_0;
	}

	if (!static::checkActionLogLevel($level))
		return;

	static::$pool[$entityName][$orderId][$id][$type][] = array(
		'RECORD_TYPE' => static::SALE_ORDER_HISTORY_RECORD_TYPE_ACTION,
		'ENTITY_NAME' => $entityName,
		'ENTITY' => $entity,
		'ID' => $id,
		'TYPE' => $type,
		'DATA' => $fields
	);
}