Метод mapSlugToSelectorValue

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

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

Путь к исходному файлу строки 234–253
~/bitrix/modulestasks/lib/grid/task/row/content/userfield/crm.php

Исходный код

PHP
private

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

private function mapSlugToSelectorValue(int $typeId, int $id): ?string

Возвращает: ?string

Описание

Maps a stored CRM slug ({ABBR}_{id}) to the entity-selector filter value, i.e. the exact string the CRM_ITEM filter field stores when the element is picked through the dialog (addEntityIdToResult=Y): `["deal","15"]` for a regular type, `["dynamic_multiple","{typeId}:{itemId}"]` for a smart process. The inverse is {@see mapSelectorValueToSlug()}. Returns null when the type cannot be resolved.

Параметры

2
Имя Тип По умолчанию Флаги
$typeId int -
-
$id int -
-