Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
type.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
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
}
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\NameEntity
Definition
nameentity.php:19
Bitrix\Sale\Location\Name\TypeTable
Definition
type.php:34
Bitrix\Sale\Location\Name\TypeTable\getMap
static getMap()
Definition
type.php:50
Bitrix\Sale\Location\Name\TypeTable\getFilePath
static getFilePath()
Definition
type.php:35
Bitrix\Sale\Location\Name\TypeTable\getReferenceFieldName
static getReferenceFieldName()
Definition
type.php:45
Bitrix\Sale\Location\Name\TypeTable\getTableName
static getTableName()
Definition
type.php:40
Bitrix\Main
Bitrix\Sale\Location\Name
Definition
group.php:8
Bitrix\Sale\Location
modules
sale
lib
location
name
type.php
Создано системой
1.10.0