Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sectionconverter.php
1<?php
2
4
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29