- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
- Класс: CEventCalendar
- Вызов: CEventCalendar::GetCalendarModificationLabel
static function GetCalendarModificationLabel($calendarId)
{
[$iblockId, $sectionId, $subSectionId] = $calendarId;
$arFilter = array(
"IBLOCK_ID" => $iblockId,
"ACTIVE" => "Y",
"CHECK_PERMISSIONS" => "N",
"INCLUDE_SUBSECTIONS" => "Y",
);
if ($sectionId > 0)
$arFilter["SECTION_ID"] = ($subSectionId > 0 ? $subSectionId : $sectionId);
$dbResult = CIBlockElement::GetList(array('TIMESTAMP_X' => 'DESC'), $arFilter, false, false, array("ID", "IBLOCK_ID", "TIMESTAMP_X"));
if ($arResult = $dbResult->Fetch())
return $arResult["TIMESTAMP_X"];
return "";
}