• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/exchangecontacts.php
  • Класс: CDavExchangeContacts
  • Вызов: CDavExchangeContacts::ConvertContactFolderToArray
private function ConvertContactFolderToArray($calendarFolder)
{
	$arResultFolder = array();

	$arFolderId = $calendarFolder->GetPath("/ContactsFolder/FolderId");
	if (!empty($arFolderId))
	{
		$arResultFolder["XML_ID"] = $arFolderId[0]->GetAttribute("Id");
		$arResultFolder["MODIFICATION_LABEL"] = $arFolderId[0]->GetAttribute("ChangeKey");
	}

	$arDisplayName = $calendarFolder->GetPath("/ContactsFolder/DisplayName");
	if (!empty($arDisplayName))
	{
		$arResultFolder["NAME"] = $this->Encode($arDisplayName[0]->GetContent());
	}

	$arTotalCount = $calendarFolder->GetPath("/ContactsFolder/TotalCount");
	if (!empty($arTotalCount))
	{
		$arResultFolder["TOTAL_COUNT"] = $arTotalCount[0]->GetContent();
	}

	$arChildFolderCount = $calendarFolder->GetPath("/ContactsFolder/ChildFolderCount");
	if (!empty($arChildFolderCount))
	{
		$arResultFolder["CHILD_FOLDER_COUNT"] = $arChildFolderCount[0]->GetContent();
	}

	return $arResultFolder;
}