SectionBuilderFromDataManager::getCreator

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. SectionBuilderFromDataManager
  4. getCreator
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/sectionbuilderfromdatamanager.php
  • Класс: BitrixCalendarCoreBuildersSectionBuilderFromDataManager
  • Вызов: SectionBuilderFromDataManager::getCreator
private function getCreator(): ?Role
{
	if ($id = ($this->sectionDM->getCreatedBy() ??  $this->sectionDM->getOwnerId()))
	{
		try
		{
			return Helper::getUserRole($id);
		}
		catch (BaseException $e)
		{
			return null;
		}
	}

	return null;
}

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