Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
repo.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
RepoTable
extends
Entity\DataManager
26
{
31
public
static
function
getTableName
()
32
{
33
return
'b_landing_repo'
;
34
}
35
40
public
static
function
getMap
()
41
{
42
return
array(
43
'ID'
=>
new
Entity
\
IntegerField
(
'ID'
, array(
44
'primary'
=>
true
,
45
'autocomplete'
=>
true
,
46
'title'
=>
'ID'
47
)),
48
'XML_ID'
=>
new
Entity
\
StringField
(
'XML_ID'
, array(
49
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_XML_ID'
),
50
'required'
=>
true
51
)),
52
'APP_CODE'
=>
new
Entity
\
StringField
(
'APP_CODE'
, array(
53
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_APP_CODE'
)
54
)),
55
'ACTIVE'
=>
new
Entity
\
StringField
(
'ACTIVE'
, array(
56
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_ACTIVE'
)
57
)),
58
'NAME'
=>
new
Entity
\
StringField
(
'NAME'
, array(
59
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_NAME'
),
60
'required'
=>
true
61
)),
62
'DESCRIPTION'
=>
new
Entity
\
StringField
(
'DESCRIPTION'
, array(
63
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_DESCRIPTION'
)
64
)),
65
'SECTIONS'
=>
new
Entity
\
StringField
(
'SECTIONS'
, array(
66
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_SECTIONS'
)
67
)),
68
'SITE_TEMPLATE_ID'
=>
new
Entity
\
StringField
(
'SITE_TEMPLATE_ID'
, array(
69
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_SITE_TEMPLATE_ID'
)
70
)),
71
'PREVIEW'
=>
new
Entity
\
StringField
(
'PREVIEW'
, array(
72
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_PREVIEW'
)
73
)),
74
'MANIFEST'
=>
new
Entity
\
StringField
(
'MANIFEST'
, array(
75
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_MANIFEST'
)
76
)),
77
'CONTENT'
=>
new
Entity
\
StringField
(
'CONTENT'
, array(
78
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_CONTENT'
),
79
'required'
=>
true
80
)),
81
'CREATED_BY_ID'
=>
new
Entity
\
IntegerField
(
'CREATED_BY_ID'
, array(
82
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_CREATED_BY_ID'
),
83
'required'
=>
true
84
)),
85
'MODIFIED_BY_ID'
=>
new
Entity
\
IntegerField
(
'MODIFIED_BY_ID'
, array(
86
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_MODIFIED_BY_ID'
),
87
'required'
=>
true
88
)),
89
'DATE_CREATE'
=>
new
Entity
\
DatetimeField
(
'DATE_CREATE'
, array(
90
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_DATE_CREATE'
),
91
'required'
=>
true
92
)),
93
'DATE_MODIFY'
=>
new
Entity
\
DatetimeField
(
'DATE_MODIFY'
, array(
94
'title'
=>
Loc::getMessage
(
'LANDING_TABLE_FIELD_DATE_MODIFY'
),
95
'required'
=>
true
96
))
97
);
98
}
99
}
Bitrix\Landing\Internals\RepoTable
Definition
repo.php:26
Bitrix\Landing\Internals\RepoTable\getMap
static getMap()
Definition
repo.php:40
Bitrix\Landing\Internals\RepoTable\getTableName
static getTableName()
Definition
repo.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\DatetimeField
Definition
datetimefield.php:22
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
repo.php
Создано системой
1.10.0