1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entitytype.php
См. документацию.
1<?php
2
3
4namespace Bitrix\Sale\Exchange\Integration;
5
6
7use Bitrix\Main\Localization\Loc;
8
10{
11 const UNDEFINED = 0;
12 const ORDER = 1;
13 const USER = 2;
14
15 private static $ALL_DESCRIPTIONS = array();
16
17 public static function getDescription($typeId)
18 {
19 $typeId = intval($typeId);
20 $all = self::getAllDescriptions();
21 return isset($all[$typeId]) ? $all[$typeId] : '';
22 }
23
24 public static function getAllDescriptions()
25 {
26 if(!self::$ALL_DESCRIPTIONS[LANGUAGE_ID])
27 {
28 Loc::loadLanguageFile(__FILE__);
29
30 self::$ALL_DESCRIPTIONS[LANGUAGE_ID] = array(
31 self::ORDER => Loc::getMessage('SALE_INTEGRATION_ORDER_TYPE'),
32 self::USER => Loc::getMessage('SALE_INTEGRATION_USER_TYPE'),
33 );
34 }
35
36 return self::$ALL_DESCRIPTIONS[LANGUAGE_ID];
37 }
38}
static getDescription($typeId)
Определения entitytype.php:17
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804