Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entitytype.php
1<?php
2
3
5
6
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 loadLanguageFile($file, $language=null, $normalize=true)
Definition loc.php:224
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29