Метод resolveType

private

Сигнатура метода

private function resolveType(string|SettingType $mapType, ?SettingOptionCollection $mapOptions, string|SettingType $aiType): string|SettingType

Возвращает: string|SettingType

Описание

Resolves the effective type for a merged field. Priority rules: 1. Special type from .ai.php (SettingType) - always wins; it carries a glossary entry. 2. Special type from the map (SettingType) - preserve if .ai.php gave a plain string. 3. G1: if the map type is an empty dynamic select and .ai.php gives a non-empty scalar -> use .ai.php. 4. Otherwise: keep the map type.

Параметры

3
Имя Тип По умолчанию Флаги
$mapType string|SettingType —
—
$mapOptions ?SettingOptionCollection —
—
$aiType string|SettingType —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/integration/aiassistant/activityaidescriptionmerger.php
Расположение метода в файле
Строки 134–159

Исходный код

PHP