Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
confidentiality.php
1
<?php
2
10
namespace
Bitrix\Socialnetwork\Helper\UI\Grid\Workgroup
;
11
12
use
Bitrix\Main\Localization\Loc
;
13
14
class
Confidentiality
15
{
16
public
static
function
getValue
(array $params = []): string
17
{
18
$confidentialityCode = (string)($params[
'code'
] ??
''
);
19
20
switch
($confidentialityCode)
21
{
22
case
'open'
:
23
$result =
Loc::getMessage
(
'SOCIALNETWORK_GROUP_LIST_TEMPLATE_PRIVACY_TYPE_OPEN'
);
24
break
;
25
case
'closed'
:
26
$result =
Loc::getMessage
(
'SOCIALNETWORK_GROUP_LIST_TEMPLATE_PRIVACY_TYPE_CLOSED'
);
27
break
;
28
case
'secret'
:
29
$result =
Loc::getMessage
(
'SOCIALNETWORK_GROUP_LIST_TEMPLATE_PRIVACY_TYPE_SECRET'
);
30
break
;
31
default
:
32
$result =
''
;
33
}
34
35
return
$result;
36
}
37
}
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\Socialnetwork\Helper\UI\Grid\Workgroup\Confidentiality
Definition
confidentiality.php:15
Bitrix\Socialnetwork\Helper\UI\Grid\Workgroup\Confidentiality\getValue
static getValue(array $params=[])
Definition
confidentiality.php:16
Bitrix\Socialnetwork\Helper\UI\Grid\Workgroup
Definition
actions.php:10
modules
socialnetwork
lib
helper
ui
grid
workgroup
confidentiality.php
Создано системой
1.10.0