• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/rest/externalchannel.php
  • Класс: Bitrix\Crm\Rest\CCrmExternalChannelImportRequisite
  • Вызов: CCrmExternalChannelImportRequisite::deleteEntities
protected function deleteEntities($proccessList=array())
{
	$result = new Result();

	if($this->getUpdateEntityMode() == self::UPDATE_MODE_NONE)
	{
		$resultList = $this->innerList(array('=ENTITY_ID' => $this->getOwnerEntityId()));
		while($list = $resultList->fetch())
		{
			if(!in_array($list['ID'], $proccessList))
			{
				$errors = [];
				$r = $this->innerDelete($list['ID'], $errors);
				if($r->getErrors())
					$result->addErrors($r->getErrors());
			}
		}
	}
	return $result;
}