• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/addressbookhandler.php
  • Класс: CDavAddressbookHandler
  • Вызов: CDavAddressbookHandler::Delete
public function Delete($id, $siteId, $account, $arPath)
{
	$collectionId = $this->GetCollectionId($siteId, $account, $arPath);
	if ($collectionId == null)
		return '404 Not Found';
	$oldCard = $this->GetEntry('DELETE', $id, $collectionId);;
	if (!is_array($oldCard))
		return $oldCard;

	if ($this->IsMacAgent())
	{
		return $this->GetDefaultResourceProvider()->Delete($id);
	}
	else
	{
		if (!empty($this->addressbookCollections[$arPath[0]]))
			return $this->addressbookCollections[$arPath[0]]->Delete($id);
	}


	return false;

}