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

	$this->body .= "   rn";

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

	if (!in_array($arParentFolderId["id"], self::$arDistinguishedFolderIdNameType))
	{
		$this->body .= "    rn";
	}
	elseif (array_key_exists("mailbox", $arParentFolderId))
	{
		$this->body .= "    rn";
		$this->body .= "     ".htmlspecialcharsbx($arParentFolderId["mailbox"])."rn";
		$this->body .= "    rn";
	}
	else
	{
		$this->body .= "    rn";
	}

	$this->body .= "   rn";


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


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