• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/LogMessage/CalendarSharing/InvitationSent.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\LogMessage\CalendarSharing\InvitationSent
  • Вызов: InvitationSent::getAccessibilityContentBlock
private function getAccessibilityContentBlock(): Layout\Body\ContentBlock
{
	$workTimeData = (new WorkTime())->getData();
	$timeFrom = $workTimeData['TIME_FROM'];
	$timeTo = $workTimeData['TIME_TO'];

	return (new Layout\Body\ContentBlock\ContentBlockWithTitle())
		->setInline()
		->setTitle(
			$this->getMessage('CRM_TIMELINE_CALENDAR_SHARING_ACCESSIBILITY')
		)
		->setContentBlock(
			(new Layout\Body\ContentBlock\Calendar\SharingSlotsList())
				->addListItem((new Layout\Body\ContentBlock\Calendar\SharingSlotsListItem())
					->setType(Layout\Body\ContentBlock\Calendar\SharingSlotsListItem::WORK_DAYS_TYPE)
					->setTimeStart($this->getMinutesFromWorkTimeObject($timeFrom))
					->setTimeEnd($this->getMinutesFromWorkTimeObject($timeTo))
					->setSlotLength($this->getSlotDefaultSize())
				)
		)
	;
}