Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
type.php
1<?php
9
10use Bitrix\Main;
14
15Loc::loadMessages(__FILE__);
16
33class TypeTable extends NameEntity
34{
35 public static function getFilePath()
36 {
37 return __FILE__;
38 }
39
40 public static function getTableName()
41 {
42 return 'b_sale_loc_type_name';
43 }
44
45 public static function getReferenceFieldName()
46 {
47 return 'TYPE_ID';
48 }
49
50 public static function getMap()
51 {
52 return array(
53
54 'ID' => array(
55 'data_type' => 'integer',
56 'primary' => true,
57 'autocomplete' => true,
58 ),
59 'NAME' => array(
60 'data_type' => 'string',
61 'required' => true,
62 'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_NAME_FIELD')
63 ),
64 'LANGUAGE_ID' => array(
65 'data_type' => 'string',
66 'required' => true,
67 'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_LANGUAGE_ID_FIELD')
68 ),
69
70 'TYPE_ID' => array(
71 'data_type' => 'integer',
72 'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_TYPE_ID_FIELD')
73 ),
74 'TYPE' => array(
75 'data_type' => '\Bitrix\Sale\Location\Type',
76 'required' => true,
77 'reference' => array(
78 '=this.TYPE_ID' => 'ref.ID'
79 )
80 ),
81
82 'CNT' => array(
83 'data_type' => 'integer',
84 'expression' => array(
85 'count(*)'
86 )
87 ),
88 );
89 }
90}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29