Util::getUserFieldsByEventId

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Util
  4. getUserFieldsByEventId
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
  • Класс: BitrixCalendarUtil
  • Вызов: Util::getUserFieldsByEventId
static function getUserFieldsByEventId(int $eventId): array
{
	global $DB;
	$result = [];
	$strSql = "SELECT * from b_uts_calendar_event WHERE VALUE_ID=" . $eventId;
	$ufDb = $DB->query($strSql);

	while ($uf = $ufDb->fetch())
	{
		$result[] = [
			'crm' => unserialize($uf['UF_CRM_CAL_EVENT'], ['allowed_classes' => false]),
			'webdav' => unserialize($uf['UF_WEBDAV_CAL_EVENT'], ['allowed_classes' => false]),
		];
	}

	return $result;
}

Добавить комментарий