Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
tools.php
1
<?php
2
3
namespace
Bitrix\Currency\Helpers\Admin
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Main\Localization\Loc
;
7
use
Bitrix\Currency
;
8
15
class
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
}
Bitrix\Currency\Helpers\Admin\Tools
Definition
tools.php:16
Bitrix\Currency\Helpers\Admin\Tools\getCurrencyLinkList
static getCurrencyLinkList()
Definition
tools.php:22
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\Currency\Helpers\Admin
Definition
roundedit.php:2
Bitrix\Currency
Bitrix\Main
modules
currency
lib
helpers
admin
tools.php
Создано системой
1.10.0