• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_sect.php
  • Класс: CCalendarSect
  • Вызов: CCalendarSect::GetModificationLabel
static function GetModificationLabel($calendarId) // GetCalendarModificationLabel
{
	global $DB;
	// We didn't have cashing for task list,
	// so just change modification label every 3 minutes
	if ($calendarId[0] === CCalendar::TASK_SECTION_ID)
	{
		return CCalendar::Date(round(time() / 180) * 180);
	}

	$sectionId = (int)$calendarId[0];
	if ($sectionId > 0)
	{
		$strSql = "
			SELECT ".$DB->DateToCharFunction("CS.TIMESTAMP_X")." as TIMESTAMP_X
			FROM b_calendar_section CS
			WHERE ID=".$sectionId;
		$res = $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); if($sect = $res->Fetch()) return $sect['TIMESTAMP_X']; } return ""; }