• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_sect.php
  • Класс: CCalendarSect
  • Вызов: CCalendarSect::UpdateModificationLabel
static function UpdateModificationLabel($arId = [])
{
	global $DB;
	if (!is_array($arId) && $arId)
	{
		$arId = [$arId];
	}

	$arId = array_unique($arId);
	$strIds = [];
	foreach($arId as $id)
	{
		if ((int)$id > 0)
		{
			$strIds[] = (int)$id;
		}
	}
	$strIds = implode(',', $strIds);

	if ($strIds)
	{
		$strSql =
		"UPDATE b_calendar_section SET ".
			$DB->PrepareUpdate("b_calendar_section", array('TIMESTAMP_X' => FormatDate(CCalendar::DFormat(true), time()))).
		" WHERE ID in (".$strIds.")";
		$DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); } }