• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/exchangeclientrequest.php
  • Класс: CDavExchangeClientRequest
  • Вызов: CDavExchangeClientRequest::CreateUpdateItemBody
public function CreateUpdateItemBody($itemId, $arFields)
{
	$this->body  = "<"."?xml version="1.0" encoding="utf-8"?".">rn";
	$this->body .= "rn";
	$this->body .= " rn";
	$this->body .= "  exchangeClient->UpdateItemAttributes()." xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">rn";
	$this->body .= "   rn";
	$this->body .= "    rn";

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

	$id = (isset($itemId["id"]) ? $itemId["id"] : $itemId["XML_ID"]);
	$changekey = (isset($itemId["changekey"]) ? $itemId["changekey"] : (isset($itemId["MODIFICATION_LABEL"]) ? $itemId["MODIFICATION_LABEL"] : null));


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

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

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

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