- Модуль: dav
- Путь к файлу: ~/bitrix/modules/dav/classes/general/groupdavclient.php
- Класс: CDavGroupdavClient
- Вызов: CDavGroupdavClient::Propfind
public function Propfind($path, $arProperties = null, $arFilter = null, $depth = 1, $logger = null)
{
$path = $this->FormatUri($path);
$request = $this->CreateBasicRequest('PROPFIND', $path);
$request->AddHeader('Depth', (int)$depth);
$request->AddHeader('Content-type', 'text/xml');
$request->CreatePropfindBody($arProperties, $arFilter);
$response = $this->Send($request);
if ($response)
{
if ($logger)
{
$this->logAction($logger, $request, $response);
}
$code = (int)$response->GetStatus();
if ($code !== 207)
{
$this->AddError($code, $response->GetStatus('phrase'));
}
return $response;
}
return null;
}