CCrmQuoteRestProxy::innerDelete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmQuoteRestProxy
  4. innerDelete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmQuoteRestProxy
  • Вызов: CCrmQuoteRestProxy::innerDelete
protected function innerDelete($ID, &$errors, array $params = null)
{
	if(!CCrmQuote::CheckDeletePermission($ID))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$entity = self::getEntity();
	$result = $entity->Delete($ID);
	if($result !== true)
	{
		$errors[] = $entity->LAST_ERROR;
	}

	return $result;
}

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