EventBuilder::prepareRelations

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventBuilder
  4. prepareRelations
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilder.php
  • Класс: BitrixCalendarCoreBuildersEventBuilder
  • Вызов: EventBuilder::prepareRelations
protected function prepareRelations($relations): ?Relations
{
	if (!isset($relations))
	{
		return null;
	}

	$relations = is_string($relations)
		? unserialize($relations, ['allowed_classes' => false])
		: $relations
	;

	if ($relations && !empty($relations['COMMENT_XML_ID']))
	{
		return (new Relations($relations['COMMENT_XML_ID']));
	}

	return null;
}

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