- Модуль: dav
- Путь к файлу: ~/bitrix/modules/dav/classes/general/webdav.php
- Класс: CDavWebDav
- Вызов: CDavWebDav::GetAllowableMethods
protected function GetAllowableMethods()
{
$arAllowableMethods = array("OPTIONS" => "OPTIONS");
foreach (get_class_methods($this) as $method)
{
if (!strcasecmp("Wrapper", mb_substr($method, -7)))
{
$method = mb_strtoupper(mb_substr($method, 0, -7));
if (method_exists($this, $method))
{
$arAllowableMethods[$method] = $method;
}
}
}
if (isset($arAllowableMethods["GET"]))
{
$arAllowableMethods["HEAD"] = "HEAD";
}
if (!method_exists($this, "CheckLock"))
{
unset($arAllowableMethods["LOCK"], $arAllowableMethods["UNLOCK"]);
}
return $arAllowableMethods;
}