Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
tools.php
1<?php
2
4
8
15class Tools
16{
22 public static function getCurrencyLinkList(): array
23 {
24 global $APPLICATION;
25
26 $result = [];
27
28 $currencyLinkTitle = Main\Text\HtmlFilter::encode(
29 ($APPLICATION->getGroupRight('currency') < 'W')
30 ? Loc::getMessage('CURRENCY_HELPERS_ADMIN_TOOLS_MESS_CURRENCY_VIEW_TITLE')
31 : Loc::getMessage('CURRENCY_HELPERS_ADMIN_TOOLS_MESS_CURRENCY_EDIT_TITLE')
32 );
33
34 $currencyList = Currency\CurrencyManager::getCurrencyList();
35 foreach ($currencyList as $currency => $title)
36 {
37 $result[$currency] =
38 '<a href="/bitrix/admin/currency_edit.php?ID=' . urlencode($currency) . '&lang=' .LANGUAGE_ID
39 . '" title="' . $currencyLinkTitle . '">' . Main\Text\HtmlFilter::encode($title) . '</a>'
40 ;
41 }
42 unset($currency, $title, $currencyList);
43
44 return $result;
45 }
46}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29