• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/exchangeclientrequest.php
  • Класс: CDavExchangeClientRequest
  • Вызов: CDavExchangeClientRequest::CreateUpdateFolderBody
public function CreateUpdateFolderBody($folderId, $arFields)
{
	$this->body  = "<"."?xml version="1.0" encoding="utf-8"?".">rn";
	$this->body .= "rn";
	$this->body .= " rn";
	$this->body .= "  rn";
	$this->body .= "   rn";
	$this->body .= "    rn";

	if (!is_array($folderId))
		$folderId = array("id" => $folderId);

	if (!in_array($folderId["id"], self::$arDistinguishedFolderIdNameType))
	{
		$id = (isset($folderId["id"]) ? $folderId["id"] : $folderId["XML_ID"]);
		$changekey = (isset($folderId["changekey"]) ? $folderId["changekey"] : (isset($folderId["MODIFICATION_LABEL"]) ? $folderId["MODIFICATION_LABEL"] : null));

		$this->body .= "     body .= " ChangeKey="".htmlspecialcharsbx($changekey).""";
		$this->body .= "/>rn";
	}
	else
	{
		$this->body .= "     body .= " ChangeKey="".htmlspecialcharsbx($changekey).""";
		$this->body .= "/>rn";
	}

	$this->body .= "     rn";
	$this->body .= $this->exchangeClient->UpdateFolderBody($arFields);
	$this->body .= "     rn";

	$this->body .= "    rn";
	$this->body .= "   rn";

	$this->body .= "  rn";
	$this->body .= " rn";
	$this->body .= "";
}