...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_event.php
- Класс: \CCrmEvent
- Вызов: CCrmEvent::RemoveRelation
public function RemoveRelation($RELATION_ID, $ENTITY_TYPE, $bPermCheck = true) { $RELATION_ID = intval($RELATION_ID); if (!in_array($ENTITY_TYPE, Array('LEAD', 'CONTACT', 'COMPANY', 'DEAL', 'QUOTE'))) return false; if ($bPermCheck) { $CrmPerms = new CCrmPerms($this->currentUserID); if ($CrmPerms->HavePerm($ENTITY_TYPE, BX_CRM_PERM_NONE)) return false; } $sSql = "DELETE FROM b_crm_event_relations WHERE ID = $RELATION_ID"; $this->cdb->Query($sSql, 'FILE: '.__FILE__.'
LINE: '.__LINE__); return true; }