...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/sonet_subscription.php
- Класс: \CAllCrmSonetSubscription
- Вызов: CAllCrmSonetSubscription::EnsureResponsibilityImported
static function EnsureResponsibilityImported($entityTypeID, $userID, $reset = false) { if(!CCrmOwnerType::IsDefined($entityTypeID)) { return false; } $userID = intval($userID); if($userID <= 0) { $userID = CCrmSecurityHelper::GetCurrentUser(); } $reset = (bool)$reset; $optionName = mb_strtolower(CCrmOwnerType::ResolveName($entityTypeID)).'_sl_subscr_import'; if($reset || CUserOptions::GetOption('crm', $optionName, 'N', $userID) !== 'Y') { self::GetCurrent()->ImportResponsibility($entityTypeID, $userID, 5000); CUserOptions::SetOption('crm', $optionName, 'Y', false, $userID); } return true; }