- Модуль: dav
- Путь к файлу: ~/bitrix/modules/dav/classes/general/webdavserver.php
- Класс: CDavWebDavServer
- Вызов: CDavWebDavServer::fillSystemStorage
private function fillSystemStorage(&$arResources, $requestPath)
{
if ($requestPath === '/docs/')
{
$arResources[] = $this->getResourceObjectRoot("");
if ($this->request->GetDepth())
{
$arResources[] = $this->getResourceObjectRoot(Loc::getMessage('DAV_USER_STORAGES'));
$arResources[] = $this->getResourceObjectRoot(Loc::getMessage('DAV_GROUP_STORAGES'));
$this->fillResourceRootStorages(ProxyTypeCommon::class, $arResources, $requestPath);
}
return true;
}
elseif (preg_match('#^(/docs/'.$this->titleUserStoragesQuote.'/?)$#', $requestPath))
{
if ($this->request->GetDepth())
{
$this->fillResourceRootStorages(ProxyTypeUser::class, $arResources, $requestPath);
}
return true;
}
elseif (preg_match('#^(/docs/'.$this->titleGroupStoragesQuote.'/?)$#', $requestPath))
{
if ($this->request->GetDepth())
{
$this->fillResourceRootStorages(ProxyTypeGroup::class, $arResources, $requestPath);
}
return true;
}
return false;
}