- Модуль: dav
- Путь к файлу: ~/bitrix/modules/dav/classes/general/addressbookhandler.php
- Класс: CDavAddressbookHandler
- Вызов: CDavAddressbookHandler::Get
public function Get(&$arResult, $id, $siteId, $account, $arPath)
{
$collectionId = $this->GetCollectionId($siteId, $account, $arPath);
if ($collectionId == null)
return '404 Not Found';
$oldCard = $this->GetEntry('GET', $id, $collectionId);
if (is_null($oldCard) || !is_array($oldCard))
return $oldCard;
if ($this->IsMacAgent())
{
$res = $this->GetDefaultResourceProvider()->Get($collectionId, $oldCard);
}
elseif (!empty($this->addressbookCollections[$arPath[0]]))
{
$res = $this->addressbookCollections[$arPath[0]]->Get($collectionId, $oldCard);
}
if (!empty($res))
{
$res['data'] = $this->groupdav->GetResponse()->Encode($res['data']);
$arResult = $res;
}
return true;
}