- Модуль: salescenter
- Путь к файлу: ~/bitrix/modules/salescenter/lib/integration/crmmanager.php
- Класс: BitrixSalesCenterIntegrationCrmManager
- Вызов: CrmManager::getDefaultDealListLinks
protected function getDefaultDealListLinks()
{
$defaultView = [
DealSettings::VIEW_LIST => CrmCheckPath('PATH_TO_DEAL_LIST', '', '#SITE_DIR#crm/deal/list/'),
DealSettings::VIEW_KANBAN => '#SITE_DIR#crm/deal/kanban/',
DealSettings::VIEW_CALENDAR => '#SITE_DIR#crm/deal/calendar/',
];
$currentCategoryID = CUserOptions::GetOption('crm', 'current_deal_category', -1);
if($currentCategoryID >= 0)
{
$defaultView[DealSettings::VIEW_LIST] = CComponentEngine::makePathFromTemplate(
'#SITE_DIR#crm/deal/category/#category_id#/',
['category_id' => $currentCategoryID]
);
$defaultView[DealSettings::VIEW_KANBAN] = CComponentEngine::makePathFromTemplate(
'#SITE_DIR#crm/deal/kanban/category/#category_id#/',
['category_id' => $currentCategoryID]
);
$defaultView[DealSettings::VIEW_CALENDAR] = CComponentEngine::makePathFromTemplate(
'#SITE_DIR#crm/deal/calendar/category/#category_id#/',
['category_id' => $currentCategoryID]
);
}
return $defaultView;
}