Метод parseCrmFilterValue

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

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

Путь к исходному файлу строки 2618–2635
~/bitrix/modulestasks/lib/provider/query/taskfilterbuilder.php

Исходный код

PHP
private

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

private function parseCrmFilterValue(string $value): array

Возвращает: array

Описание

The "CRM element" filter value arrives in two shapes: the cell click-filter passes the stored slug directly (`D_15`, `ALL_2`, `NONE`), while the filter-field entity selector (ADD_ENTITY_ID_TO_RESULT) passes JSON `["{entityId}", "{id}"]`, where the concrete id is the bare CRM id and the type lives only in the selector entityId. Returns [entityId|null, token]; entityId is non-null only for the JSON form.

Параметры

1
Имя Тип По умолчанию Флаги
$value string -
-