- Модуль: biconnector
- Путь к файлу: ~/bitrix/modules/biconnector/lib/manager.php
- Класс: BitrixBIConnectorManager
- Вызов: Manager::getMenuItems
public function getMenuItems()
{
global $USER;
$items = [];
if (BitrixMainLoader::includeModule('bitrix24'))
{
if (!BitrixBitrix24Feature::isFeatureEnabled('biconnector'))
{
return $items;
}
}
if ($USER->canDoOperation('biconnector_key_view'))
{
$licence = Application::getInstance()->getLicense();
if ($licence->getRegion() === 'ru' || $licence->getRegion() === 'by')
{
$items[] = [
'id' => 'crm_bi_templates',
'url' => '/biconnector/templates.php',
'external' => false,
'component_name' => 'bitrix:biconnector.templates',
'component_parameters' => [
'SHOW_TITLE' => 'N',
],
];
}
$items[] = [
'id' => 'crm_microsoft_power_bi',
'external' => false,
'component_name' => 'bitrix:biconnector.microsoftpbi',
'component_parameters' => [
'SHOW_TITLE' => 'N',
],
];
if ($licence->getRegion() === 'ru' || $licence->getRegion() === 'kz')
{
$items[] = [
'id' => 'crm_yandex_datalens',
'external' => false,
'component_name' => 'bitrix:biconnector.yandexdl',
'component_parameters' => [
'SHOW_TITLE' => 'N',
],
];
}
$items[] = [
'id' => 'crm_google_datastudio',
'external' => false,
'component_name' => 'bitrix:biconnector.googleds',
'component_parameters' => [
'SHOW_TITLE' => 'N',
],
];
}
foreach ($this->getCurrentUserDashboardList() as $dashboard)
{
$items[] = [
'id' => 'crm_bi_dashboard_' . $dashboard['ID'],
'url' => '/biconnector/dashboard.php?id=' . $dashboard['ID'],
'title' => $dashboard['NAME'],
];
}
$items = array_merge($items, $this->getDashboardsForPlacement(Rest::BI_MENU_PLACEMENT));
return $items;
}