CCrmRole::Delete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRole
  4. Delete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_role.php
  • Класс: \CCrmRole
  • Вызов: CCrmRole::Delete
public function Delete($ID)
{
	$this->log('Delete', ['ID' => $ID]);
	global $DB;
	$ID = (int)$ID;
	$sSql = 'DELETE FROM b_crm_role_relation WHERE ROLE_ID = '.$ID;
	$DB->Query($sSql, false, 'FILE: '.__FILE__.'
LINE: '.__LINE__); $sSql = 'DELETE FROM b_crm_role_perms WHERE ROLE_ID = '.$ID; $DB->Query($sSql, false, 'FILE: '.__FILE__.'
LINE: '.__LINE__); $sSql = 'DELETE FROM b_crm_role WHERE ID = '.$ID; $DB->Query($sSql, false, 'FILE: '.__FILE__.'
LINE: '.__LINE__); self::ClearCache(); }

Добавить комментарий