• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/fuser.php
  • Класс: BitrixSaleFuser
  • Вызов: Fuser::save
static function save(?int $id, array $fields): ORMDataResult
{
	$pool = Application::getInstance()->getConnectionPool();
	$pool->useMasterOnly(true);
	if ($id === null)
	{
		$internalResult = InternalsFuserTable::add($fields);
	}
	else
	{
		$internalResult = InternalsFuserTable::update($id, $fields);
	}
	$pool->useMasterOnly(false);
	unset($pool);

	return $internalResult;
}