Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
storedocumentfiletable.php
1<?php
2namespace Bitrix\Catalog;
3
8
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29