• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/usergrouprestriction.php
  • Класс: BitrixSaleInternalsUserGroupRestrictionTable
  • Вызов: UserGroupRestrictionTable::deleteByEntity
static function deleteByEntity($entityType, $entityId)
{
	$conn = MainApplication::getConnection();
	$helper = $conn->getSqlHelper();
	$conn->queryExecute('DELETE FROM '.$helper->quote(self::getTableName()).' WHERE ENTITY_TYPE_ID='.(string)(int)$entityType.' AND ENTITY_ID='.(string)(int)$entityId);
}