Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
file.php
1
<?php
2
namespace
Bitrix\Landing\Internals
;
3
4
use \Bitrix\Main\Localization\Loc;
5
use \Bitrix\Main\Entity;
6
7
Loc::loadMessages
(__FILE__);
8
25
class
FileTable
extends
Entity\DataManager
26
{
31
public
static
function
getTableName
(): string
32
{
33
return
'b_landing_file'
;
34
}
35
40
public
static
function
getMap
(): array
41
{
42
return
array(
43
'ID'
=>
new
Entity
\
IntegerField
(
'ID'
, array(
44
'primary'
=>
true
,
45
'autocomplete'
=>
true
,
46
'title'
=>
'ID'
47
)),
48
'ENTITY_ID'
=>
new
Entity
\
IntegerField
(
'ENTITY_ID'
, array(
49
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_ENTITY_ID'
),
50
'required'
=>
true
51
)),
52
'ENTITY_TYPE'
=>
new
Entity
\
StringField
(
'ENTITY_TYPE'
, array(
53
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_ENTITY_TYPE'
),
54
'required'
=>
true
55
)),
56
'FILE_ID'
=>
new
Entity
\
IntegerField
(
'FILE_ID'
, array(
57
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_FILE_ID'
),
58
'required'
=>
true
59
)),
60
'TEMP'
=>
new
Entity
\
StringField
(
'TEMP'
, array(
61
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_FILE_TEMP'
),
62
'required'
=>
true
,
63
'default_value'
=>
'N'
64
)),
65
'FILE'
=>
new
Entity
\ReferenceField(
66
'FILE'
,
67
'\Bitrix\Main\FileTable'
,
68
array(
'=this.FILE_ID'
=>
'ref.ID'
)
69
)
70
);
71
}
72
}
Bitrix\Landing\Internals\FileTable
Definition
file.php:26
Bitrix\Landing\Internals\FileTable\getMap
static getMap()
Definition
file.php:40
Bitrix\Landing\Internals\FileTable\getTableName
static getTableName()
Definition
file.php:31
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\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Landing\Internals
Definition
base.php:2
modules
landing
lib
internals
file.php
Создано системой
1.10.0