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