...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_role.php
- Класс: \CCrmRole
- Вызов: CCrmRole::SetRelation
public function SetRelation($arRelation, $ignoreSystem = true) { $this->log('SetRelation', $arRelation); global $DB; $sSql = $ignoreSystem ? 'DELETE FROM b_crm_role_relation WHERE ROLE_ID IN (SELECT ID FROM b_crm_role WHERE IS_SYSTEM != \'Y\')' : 'DELETE FROM b_crm_role_relation' ; $DB->Query($sSql, false, 'FILE: '.__FILE__.'
LINE: '.__LINE__); foreach ($arRelation as $sRel => $arRole) { foreach ($arRole as $iRoleID) { $arFields = array( 'ROLE_ID' => (int)$iRoleID, 'RELATION' => $DB->ForSql($sRel) ); $DB->Add('b_crm_role_relation', $arFields, array(), 'FILE: '.__FILE__.'
LINE: '.__LINE__); } } self::ClearCache(); }