Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sectionconverter.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Google
;
4
5
use
Bitrix\Calendar\Core\Section\Section
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
SectionConverter
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
}
Bitrix\Calendar\Core\Mappers\Section
Definition
section.php:21
Bitrix\Calendar\Core\Section\Section
Definition
section.php:11
Bitrix\Calendar\Sync\Google\SectionConverter
Definition
sectionconverter.php:9
Bitrix\Calendar\Sync\Google\SectionConverter\__construct
__construct(Section $section)
Definition
sectionconverter.php:18
Bitrix\Calendar\Sync\Google\SectionConverter\convertForEdit
convertForEdit()
Definition
sectionconverter.php:23
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Calendar\Sync\Google
modules
calendar
lib
sync
google
sectionconverter.php
Создано системой
1.10.0