Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
helper.php
1
<?php
2
3
namespace
Bitrix\Sender\Message
;
4
5
use
Bitrix\Sender\Integration\Crm\Connectors
;
6
use
Bitrix\Sender\PostingRecipientTable
;
7
11
class
Helper
12
{
16
public
static
function
getTemplateOptionSelector
(): array
17
{
18
return
array_map(
19
function
($item) {
20
return
[
21
'id'
=>
'#'
. $item[
'CODE'
] .
'#'
,
22
'text'
=> $item[
'NAME'
],
23
'title'
=> $item[
'DESC'
],
24
'items'
=> $item[
'ITEMS'
] ? array_map(
25
function
($item) {
26
return
[
27
'id'
=>
'#'
. $item[
'CODE'
] .
'#'
,
28
'text'
=> $item[
'NAME'
],
29
'title'
=> $item[
'DESC'
],
30
];
31
}, $item[
'ITEMS'
]
32
) : [],
33
];
34
},
35
array_merge(
36
Connectors\Helper::getPersonalizeFieldsFromConnectors(),
37
PostingRecipientTable::getPersonalizeList()
38
)
39
);
40
}
41
42
}
Bitrix\Main\Diag\Helper
Definition
helper.php:5
Bitrix\Sender\Message\Helper\getTemplateOptionSelector
static getTemplateOptionSelector()
Definition
helper.php:16
Bitrix\Sender\PostingRecipientTable
Definition
posting.php:663
Bitrix\Sender\Integration\Crm\Connectors
Definition
client.php:8
Bitrix\Sender\Message
Definition
adapter.php:9
modules
sender
lib
message
helper.php
Создано системой
1.10.0