Метод resolveReadableTargets
Сигнатура метода
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
~/bitrix/modulescrm/lib/messagesender/customtemplate/crmzoneprovider.php