Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
messagedisappearing.php
1
<?php
2
namespace
Bitrix\Im\Model
;
3
4
use
Bitrix\Main\ORM\Data\DataManager
;
5
use
Bitrix\Main\ORM\Fields\DatetimeField
;
6
use
Bitrix\Main\ORM\Fields\IntegerField
;
7
use
Bitrix\Main\Type\DateTime
;
8
9
class
MessageDisappearingTable
extends
DataManager
10
{
11
public
static
function
getTableName
()
12
{
13
return
'b_im_message_disappearing'
;
14
}
15
21
public
static
function
getMap
()
22
{
23
return
[
24
'MESSAGE_ID'
=>
new
IntegerField
(
25
'MESSAGE_ID'
,
26
[
27
'primary'
=>
true
,
28
'required'
=>
true
,
29
]
30
),
31
'DATE_CREATE'
=>
new
DatetimeField
(
32
'DATE_CREATE'
,
33
[
34
'required'
=>
true
,
35
'default'
=>
function
()
36
{
37
return
new
DateTime
();
38
},
39
]
40
),
41
'DATE_REMOVE'
=>
new
DatetimeField
(
42
'DATE_REMOVE'
,
43
[
44
'required'
=>
true
,
45
]
46
),
47
];
48
}
49
}
Bitrix\Im\Model\MessageDisappearingTable
Definition
messagedisappearing.php:10
Bitrix\Im\Model\MessageDisappearingTable\getMap
static getMap()
Definition
messagedisappearing.php:21
Bitrix\Im\Model\MessageDisappearingTable\getTableName
static getTableName()
Definition
messagedisappearing.php:11
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Im\Model
Definition
alias.php:2
modules
im
lib
model
messagedisappearing.php
Создано системой
1.10.0