Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
kkmrepository.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
12
class
KkmRepository
13
{
14
public
const
ATOL
=
'atol'
;
15
public
const
SHTRIHM
=
'shtrih-m'
;
16
public
const
EVOTOR
=
'evotor'
;
17
21
public
static
function
getAll
(): array
22
{
23
return
[
24
self::ATOL => [
25
'NAME'
=>
Loc::getMessage
(
'SALE_CASHBOX_KKM_ATOL'
)
26
],
27
self::SHTRIHM => [
28
'NAME'
=>
Loc::getMessage
(
'SALE_CASHBOX_KKM_SHTRIHM'
)
29
],
30
self::EVOTOR => [
31
'NAME'
=>
Loc::getMessage
(
'SALE_CASHBOX_KKM_EVOTOR'
)
32
],
33
];
34
}
35
40
public
static
function
getByCode
(
string
$code): ?array
41
{
42
$allKkm =
self::getAll
();
43
44
return
$allKkm[$code] ??
null
;
45
}
46
}
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\Sale\Cashbox\KkmRepository
Definition
kkmrepository.php:13
Bitrix\Sale\Cashbox\KkmRepository\SHTRIHM
const SHTRIHM
Definition
kkmrepository.php:15
Bitrix\Sale\Cashbox\KkmRepository\EVOTOR
const EVOTOR
Definition
kkmrepository.php:16
Bitrix\Sale\Cashbox\KkmRepository\getByCode
static getByCode(string $code)
Definition
kkmrepository.php:40
Bitrix\Sale\Cashbox\KkmRepository\getAll
static getAll()
Definition
kkmrepository.php:21
Bitrix\Sale\Cashbox\KkmRepository\ATOL
const ATOL
Definition
kkmrepository.php:14
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
kkmrepository.php
Создано системой
1.10.0