Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
group.php
1
<?php
8
namespace
Bitrix\Sale\Location\Name
;
9
10
use
Bitrix\Main
;
11
use
Bitrix\Main\Entity
;
12
use
Bitrix\Sale\Location
;
13
use
Bitrix\Main\Localization\Loc
;
14
15
Loc::loadMessages
(__FILE__);
16
33
class
GroupTable
extends
NameEntity
34
{
35
public
static
function
getFilePath
()
36
{
37
return
__FILE__;
38
}
39
40
public
static
function
getTableName
()
41
{
42
return
'b_sale_location_group_lang'
;
// "_lang", not "_name" because we use an old table
43
}
44
45
public
static
function
getLanguageFieldName
()
46
{
47
return
'LID'
;
48
}
49
50
public
static
function
getReferenceFieldName
()
51
{
52
return
'LOCATION_GROUP_ID'
;
53
}
54
55
public
static
function
getMap
()
56
{
57
return
array(
58
59
'ID'
=> array(
60
'data_type'
=>
'integer'
,
61
'primary'
=>
true
,
62
'autocomplete'
=>
true
,
63
),
64
'NAME'
=> array(
65
'data_type'
=>
'string'
,
66
'required'
=>
true
,
67
'title'
=>
Loc::getMessage
(
'SALE_LOCATION_NAME_GROUP_ENTITY_NAME_FIELD'
)
68
),
69
'LID'
=> array(
70
'data_type'
=>
'string'
,
71
'required'
=>
true
,
72
'title'
=>
Loc::getMessage
(
'SALE_LOCATION_NAME_GROUP_ENTITY_LANGUAGE_ID_FIELD'
)
73
),
74
// alias for LID
75
'LANGUAGE_ID'
=> array(
76
'data_type'
=>
'string'
,
77
'expression'
=> array(
78
'%s'
,
79
'LID'
80
),
81
'title'
=>
Loc::getMessage
(
'SALE_LOCATION_NAME_GROUP_ENTITY_LANGUAGE_ID_FIELD'
)
82
),
83
84
'LOCATION_GROUP_ID'
=> array(
85
'data_type'
=>
'integer'
,
86
'title'
=>
Loc::getMessage
(
'SALE_LOCATION_NAME_GROUP_ENTITY_LOCATION_GROUP_ID_FIELD'
)
87
),
88
// alias for LOCATION_GROUP_ID
89
'GROUP_ID'
=> array(
90
'data_type'
=>
'integer'
,
91
'expression'
=> array(
92
'%u'
,
93
'LOCATION_GROUP_ID'
94
),
95
'title'
=>
Loc::getMessage
(
'SALE_LOCATION_NAME_GROUP_ENTITY_LOCATION_GROUP_ID_FIELD'
)
96
),
97
98
// virtual
99
'GROUP'
=> array(
100
'data_type'
=>
'\Bitrix\Sale\Location\Group'
,
101
'required'
=>
true
,
102
'reference'
=> array(
103
'=this.LOCATION_GROUP_ID'
=>
'ref.ID'
104
)
105
),
106
107
'CNT'
=> array(
108
'data_type'
=>
'integer'
,
109
'expression'
=> array(
110
'count(*)'
111
)
112
),
113
);
114
}
115
}
Bitrix\Main\GroupTable
Definition
group.php:29
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Sale\Location\Name\GroupTable\getMap
static getMap()
Definition
group.php:55
Bitrix\Sale\Location\Name\GroupTable\getFilePath
static getFilePath()
Definition
group.php:35
Bitrix\Sale\Location\Name\GroupTable\getLanguageFieldName
static getLanguageFieldName()
Definition
group.php:45
Bitrix\Sale\Location\Name\GroupTable\getReferenceFieldName
static getReferenceFieldName()
Definition
group.php:50
Bitrix\Sale\Location\Name\GroupTable\getTableName
static getTableName()
Definition
group.php:40
Bitrix\Sale\Location\Name\NameEntity
Definition
nameentity.php:19
Bitrix\Main
Bitrix\Sale\Location\Name
Definition
group.php:8
Bitrix\Sale\Location
modules
sale
lib
location
name
group.php
Создано системой
1.10.0