Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
linkreminder.php
1
<?php
2
namespace
Bitrix\Im\Model
;
3
4
use
Bitrix\Main\ORM\Data\DataManager
;
5
use
Bitrix\Main\ORM\Fields\BooleanField
;
6
use
Bitrix\Main\ORM\Fields\DatetimeField
;
7
use
Bitrix\Main\ORM\Fields\IntegerField
;
8
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
9
use
Bitrix\Main\ORM\Query\Join
;
10
use
Bitrix\Main\Type\DateTime
;
11
42
class
LinkReminderTable
extends
DataManager
43
{
49
public
static
function
getTableName
()
50
{
51
return
'b_im_link_reminder'
;
52
}
53
59
public
static
function
getMap
()
60
{
61
return
[
62
'ID'
=>
new
IntegerField
(
63
'ID'
,
64
[
65
'primary'
=>
true
,
66
'autocomplete'
=>
true
,
67
]
68
),
69
'MESSAGE_ID'
=>
new
IntegerField
(
70
'MESSAGE_ID'
,
71
[
72
'required'
=>
true
,
73
]
74
),
75
'CHAT_ID'
=>
new
IntegerField
(
76
'CHAT_ID'
,
77
[
78
'required'
=>
true
,
79
]
80
),
81
'DATE_CREATE'
=>
new
DatetimeField
(
82
'DATE_CREATE'
,
83
[
84
'required'
=>
true
,
85
'default_value'
=>
static
function
() {
86
return
new
DateTime
();
87
}
88
]
89
),
90
'AUTHOR_ID'
=>
new
IntegerField
(
91
'AUTHOR_ID'
,
92
[
93
'required'
=>
true
,
94
]
95
),
96
'DATE_REMIND'
=>
new
DatetimeField
(
97
'DATE_REMIND'
,
98
[
99
'required'
=>
true
,
100
]
101
),
102
'IS_REMINDED'
=>
new
BooleanField
(
103
'IS_REMINDED'
,
104
[
105
'required'
=>
true
,
106
'values'
=> array(
'N'
,
'Y'
),
107
'default'
=>
'N'
,
108
'default_value'
=>
false
,
109
]
110
),
111
'MESSAGE'
=> (
new
Reference
(
112
'MESSAGE'
,
113
MessageTable::class,
114
Join::on(
'this.MESSAGE_ID'
,
'ref.ID'
)
115
))->configureJoinType(Join::TYPE_INNER),
116
];
117
}
118
}
Bitrix\Im\Model\LinkReminderTable
Definition
linkreminder.php:43
Bitrix\Im\Model\LinkReminderTable\getMap
static getMap()
Definition
linkreminder.php:59
Bitrix\Im\Model\LinkReminderTable\getTableName
static getTableName()
Definition
linkreminder.php:49
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Im\Model
Definition
alias.php:2
modules
im
lib
model
linkreminder.php
Создано системой
1.10.0