Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storedocumentfiletable.php
1
<?php
2
namespace
Bitrix\Catalog
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields\IntegerField
;
7
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
8
37
class
StoreDocumentFileTable
extends
DataManager
38
{
44
public
static
function
getTableName
()
45
{
46
return
'b_catalog_store_document_file'
;
47
}
48
54
public
static
function
getMap
()
55
{
56
return
[
57
'ID'
=>
new
IntegerField
(
58
'ID'
,
59
[
60
'primary'
=>
true
,
61
'autocomplete'
=>
true
,
62
'title'
=>
Loc::getMessage
(
'INVENTORY_DOCUMENT_ENTITY_ID_FIELD'
),
63
]
64
),
65
'DOCUMENT'
=>
new
Reference
(
66
'DOCUMENT'
,
67
'\Bitrix\Catalog\StoreDocument'
,
68
[
'=this.DOC_ID'
=>
'ref.ID'
],
69
),
70
'DOCUMENT_ID'
=>
new
IntegerField
(
71
'DOCUMENT_ID'
,
72
[
73
'required'
=>
true
,
74
'title'
=>
Loc::getMessage
(
'STORE_DOCUMENT_FILE_ENTITY_DOCUMENT_ID_FIELD'
),
75
]
76
),
77
'FILE'
=>
new
Reference
(
78
'DOCUMENT'
,
79
'\Bitrix\Main\FileTable'
,
80
[
'=this.FILE_ID'
=>
'ref.ID'
],
81
),
82
'FILE_ID'
=>
new
IntegerField
(
83
'FILE_ID'
,
84
[
85
'required'
=>
true
,
86
'title'
=>
Loc::getMessage
(
'STORE_DOCUMENT_FILE_ENTITY_FILE_ID_FIELD'
),
87
]
88
),
89
];
90
}
91
}
Bitrix\Catalog\StoreDocumentFileTable
Definition
storedocumentfiletable.php:38
Bitrix\Catalog\StoreDocumentFileTable\getMap
static getMap()
Definition
storedocumentfiletable.php:54
Bitrix\Catalog\StoreDocumentFileTable\getTableName
static getTableName()
Definition
storedocumentfiletable.php:44
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Catalog
modules
catalog
lib
storedocumentfiletable.php
Создано системой
1.10.0