1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sectionconverter.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sync\Google;
4
5use Bitrix\Calendar\Core\Section\Section;
6use Bitrix\Main\Localization\Loc;
7
9{
13 private Section $section;
14
18 public function __construct(Section $section)
19 {
20 $this->section = $section;
21 }
22
23 public function convertForEdit(): array
24 {
25 $section = [];
26
27 $section['summary'] = $this->section->getName();
28
29 //todo move to level up
30 if ($this->section->getExternalType() === \CCalendarSect::EXTERNAL_TYPE_LOCAL)
31 {
32 IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/calendar/classes/general/calendar.php');
33 $section['summary'] = Loc::getMessage('EC_CALENDAR_BITRIX24_NAME') . " " . $section['summary'];
34 }
35
36 return $section;
37 }
38}
const BX_ROOT
Определения bx_root.php:3
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
Определения tools.php:3778