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