Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
language.php
1<?php
3
21{
22 public static function getTableName()
23 {
24 return 'b_language';
25 }
26
27 public static function getMap()
28 {
29 return array(
30 'LID' => array(
31 'data_type' => 'string',
32 'primary' => true,
33 ),
34 'ID' => array(
35 'data_type' => 'string',
36 'expression' => array('%s', 'LID'),
37 ),
38 'LANGUAGE_ID' => array(
39 'data_type' => 'string',
40 'expression' => array('%s', 'LID'),
41 ),
42 'SORT' => array(
43 'data_type' => 'integer',
44 ),
45 'DEF' => array(
46 'data_type' => 'boolean',
47 'values' => array('N', 'Y'),
48 ),
49 'ACTIVE' => array(
50 'data_type' => 'boolean',
51 'values' => array('N', 'Y'),
52 ),
53 'NAME' => array(
54 'data_type' => 'string',
55 ),
56 'CULTURE_ID' => array(
57 'data_type' => 'integer',
58 ),
59 'CODE' => array(
60 'data_type' => 'string',
61 ),
62 'CULTURE' => array(
63 'data_type' => 'Bitrix\Main\Localization\Culture',
64 'reference' => array('=this.CULTURE_ID' => 'ref.ID'),
65 ),
66 );
67 }
68}