• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/groupdavclient.php
  • Класс: CDavGroupdavClient
  • Вызов: CDavGroupdavClient::CheckWebdavServer
public function CheckWebdavServer($path)
{
	$response = $this->Options($path);

	if (is_null($response))
	{
		return false;
	}
	if ($dav = $response->GetHeader('DAV'))
	{
		$ar = [];
		if (is_string($dav))
		{
			$ar = explode(",", $dav);
		}
		else if (is_array($dav))
		{
			$ar = $dav;
		}

		foreach ($ar as $v)
		{
			if (trim($v)."!" === "1!")
			{
				return true;
			}
		}
	}

	return false;
}