method
public
static
StatisticEntryManager::prepareBuilderData()
Сигнатура
public static prepareBuilderData(int $ownerTypeID) : array<string|int, mixed>
Описание
Подготовить данные построителя
Параметры
$ownerTypeID
int
Идентификатор типа владельца (см.: \CCrmOwnerType).
Возвращаемое значение
array<string|int, mixed>
Как применяется в StatisticEntryManager
StatisticEntryManager::prepareBuilderData() — метод класса \Bitrix\Crm\Statistics\StatisticEntryManager модуля «CRM».
Статический метод — вызывается через имя класса StatisticEntryManager, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\Statistics\StatisticEntryManager;
Loader::includeModule('crm');
$ownerTypeID = 1;
$result = StatisticEntryManager::prepareBuilderData($ownerTypeID);
// $result: array<string|int, mixed>Другие методы StatisticEntryManager
addEntry()Добавить записьgetBusySlotCount()Получить количество занятых слотовgetOverallSlotLimit()Получить общий лимитgetSlotBindingMap()Получить карту привязокgetSlotFieldInfos()Получить данные полейgetSlotInfos()Получить данные слотовgetSlotLimit()Получить лимит слотаisValid()Проверить, действительна ли записьprepareSlotBingingData()Подготовить данные привязкиremoveEntry()Удалить записьsetSlotBindingMap()Установить карту привязок
prepareBuilderData() есть и у других классов модуля «CRM»: DealSumStatisticEntry, InvoiceSumStatisticEntry, LeadSumStatisticEntry.
Исходный файл: source/crm/lib/statistics/statisticentrymanager.php:194

