1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
status.php
См. документацию.
1
<?php
2
namespace
Bitrix\Im\Model;
3
4
use Bitrix\Main\Entity;
5
use Bitrix\Main\ORM\Data\Internal\MergeTrait;
6
37
38
class
StatusTable
extends
Entity\DataManager
39
{
40
use MergeTrait;
41
47
public
static
function
getFilePath
()
48
{
49
return
__FILE__;
50
}
51
57
public
static
function
getTableName
()
58
{
59
return
'b_im_status'
;
60
}
61
67
public
static
function
getMap
()
68
{
69
return
array
(
70
'USER_ID'
=>
array
(
71
'data_type'
=>
'integer'
,
72
'primary'
=>
true
,
73
//'title' => Loc::getMessage('STATUS_ENTITY_USER_ID_FIELD'),
74
),
75
'COLOR'
=>
array
(
76
'data_type'
=>
'string'
,
77
'validation'
=>
array
(__CLASS__,
'validateColor'
),
78
//'title' => Loc::getMessage('STATUS_ENTITY_COLOR_FIELD'),
79
),
80
'STATUS'
=>
array
(
81
'data_type'
=>
'string'
,
82
'validation'
=>
array
(__CLASS__,
'validateStatus'
),
83
//'title' => Loc::getMessage('STATUS_ENTITY_STATUS_FIELD'),
84
'default_value'
=>
'online'
,
85
),
86
'STATUS_TEXT'
=>
array
(
87
'data_type'
=>
'string'
,
88
'validation'
=>
array
(__CLASS__,
'validateStatusText'
),
89
),
90
'IDLE'
=>
array
(
91
'data_type'
=>
'datetime'
,
92
//'title' => Loc::getMessage('STATUS_ENTITY_IDLE_FIELD'),
93
),
94
'DESKTOP_LAST_DATE'
=>
array
(
95
'data_type'
=>
'datetime'
,
96
//'title' => Loc::getMessage('STATUS_ENTITY_DESKTOP_LAST_DATE_FIELD'),
97
),
98
'MOBILE_LAST_DATE'
=>
array
(
99
'data_type'
=>
'datetime'
,
100
//'title' => Loc::getMessage('STATUS_ENTITY_MOBILE_LAST_DATE_FIELD'),
101
),
102
'EVENT_ID'
=>
array
(
103
'data_type'
=>
'integer'
,
104
//'title' => Loc::getMessage('STATUS_ENTITY_EVENT_ID_FIELD'),
105
),
106
'EVENT_UNTIL_DATE'
=>
array
(
107
'data_type'
=>
'datetime'
,
108
//'title' => Loc::getMessage('STATUS_ENTITY_EVENT_UNTIL_DATE_FIELD'),
109
),
110
'USER'
=>
array
(
111
'data_type'
=>
'Bitrix\Main\User'
,
112
'reference'
=>
array
(
'=this.USER_ID'
=>
'ref.ID'
),
113
),
114
);
115
}
116
121
public
static
function
validateStatus
()
122
{
123
return
array
(
124
new
Entity
\Validator\Length(
null
, 50),
125
);
126
}
127
132
public
static
function
validateStatusText
()
133
{
134
return
array
(
135
new
Entity
\Validator\Length(
null
, 255),
136
);
137
}
138
139
public
static
function
validateColor
()
140
{
141
return
array
(
142
new
Entity
\Validator\Length(
null
, 255),
143
);
144
}
145
}
Bitrix\Im\Model\StatusTable
Определения
status.php:39
Bitrix\Im\Model\StatusTable\validateStatusText
static validateStatusText()
Определения
status.php:132
Bitrix\Im\Model\StatusTable\getMap
static getMap()
Определения
status.php:67
Bitrix\Im\Model\StatusTable\validateStatus
static validateStatus()
Определения
status.php:121
Bitrix\Im\Model\StatusTable\getFilePath
static getFilePath()
Определения
status.php:47
Bitrix\Im\Model\StatusTable\getTableName
static getTableName()
Определения
status.php:57
Bitrix\Im\Model\StatusTable\validateColor
static validateColor()
Определения
status.php:139
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Entity
Определения
ufield.php:9
bitrix
modules
im
lib
model
status.php
Создано системой
1.14.0