Метод resolveReadableTargets

private

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

private function resolveReadableTargets(int $userId): array

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

Описание

Enumerate every readable (entityTypeId, categoryId) candidate from CRM configuration and the count of all candidates, applying the same messageSender predicate as {@see self::canReadTemplates()}. Memoized per request, keyed by user. Types come from {@see TypesMap::getFactories()}, which already folds in both static and dynamic types — enumerating dynamic types again would double-count them. Categories of a type are its {@see Factory::getCategories()} when supported, otherwise the single no-category candidate (categoryId 0).

Параметры

1
Имя Тип По умолчанию Флаги
$userId int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/messagesender/customtemplate/crmzoneprovider.php
Расположение метода в файле
Строки 192–249

Исходный код

PHP