Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
DebuggerSessionTable.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Debugger\Session\Entity
;
4
5
use
Bitrix\Bizproc\Debugger\Session\Session
;
6
use
Bitrix\Main\Localization\Loc
;
7
use
Bitrix\Main\ORM\Fields\Relations\OneToMany
;
8
use
Bitrix\Main\ORM\Fields\Validators\LengthValidator
;
9
use
Bitrix\Main\ORM\Query\Join
;
10
27
class
DebuggerSessionTable
extends
\Bitrix\Main\ORM\Data\DataManager
28
{
29
public
static
function
getTableName
()
30
{
31
return
'b_bp_debugger_session'
;
32
}
33
34
public
static
function
getObjectClass
()
35
{
36
return
Session::class;
37
}
38
39
public
static
function
getMap
()
40
{
41
return
[
42
'ID'
=> [
43
'data_type'
=>
'string'
,
44
'primary'
=>
true
,
45
],
46
'MODULE_ID'
=> [
47
'data_type'
=>
'string'
,
48
'required'
=>
true
,
49
],
50
'ENTITY'
=> [
51
'data_type'
=>
'string'
,
52
'required'
=>
true
,
53
],
54
'DOCUMENT_TYPE'
=> [
55
'data_type'
=>
'string'
,
56
'required'
=>
true
,
57
],
58
'DOCUMENT_CATEGORY_ID'
=> [
59
'data_type'
=>
'integer'
,
60
],
61
'MODE'
=> [
62
'data_type'
=>
'integer'
,
63
'required'
=>
true
,
64
],
65
'TITLE'
=> [
66
'data_type'
=>
'string'
,
67
'title'
=>
Loc::getMessage
(
'BIZPROC_DEBUGGER_SESSION_ENTITY_DEBUGGER_SESSION_FIELD_TITLE'
),
68
'required'
=>
false
,
69
'validation'
=> fn () => [
new
LengthValidator
(1, 255)],
70
],
71
'STARTED_BY'
=> [
72
'data_type'
=>
'integer'
,
73
'required'
=>
true
,
74
],
75
'STARTED_DATE'
=> [
76
'data_type'
=>
'datetime'
,
77
'required'
=>
true
,
78
'default_value'
=>
function
()
79
{
80
return
new \Bitrix\Main\Type\DateTime();
81
},
82
],
83
'FINISHED_DATE'
=> [
84
'data_type'
=>
'datetime'
,
85
],
86
'ACTIVE'
=> [
87
'data_type'
=>
'boolean'
,
88
'required'
=>
true
,
89
'values'
=> [
'N'
,
'Y'
],
90
],
91
'FIXED'
=> [
92
'data_type'
=>
'boolean'
,
93
'required'
=>
true
,
94
'values'
=> [
'N'
,
'Y'
],
95
'default_value'
=>
'N'
,
96
],
97
'DEBUGGER_STATE'
=> [
98
'data_type'
=>
'integer'
,
99
'default_value'
=> -1,
100
],
101
new
OneToMany
(
102
'DOCUMENTS'
,
103
DebuggerSessionDocumentTable::class,
104
'SESSION'
105
),
106
(
new
OneToMany
(
107
'WORKFLOW_CONTEXTS'
,
108
DebuggerSessionWorkflowContextTable::class,
109
'SESSION'
,
110
))->configureJoinType(Join::TYPE_LEFT),
111
];
112
}
113
}
Bitrix\Bizproc\Debugger\Session\Entity\DebuggerSessionTable
Definition
DebuggerSessionTable.php:28
Bitrix\Bizproc\Debugger\Session\Entity\DebuggerSessionTable\getMap
static getMap()
Definition
DebuggerSessionTable.php:39
Bitrix\Bizproc\Debugger\Session\Entity\DebuggerSessionTable\getObjectClass
static getObjectClass()
Definition
DebuggerSessionTable.php:34
Bitrix\Bizproc\Debugger\Session\Entity\DebuggerSessionTable\getTableName
static getTableName()
Definition
DebuggerSessionTable.php:29
Bitrix\Bizproc\Debugger\Session\Session
Definition
Session.php:15
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\Relations\OneToMany
Definition
onetomany.php:23
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Definition
lengthvalidator.php:19
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Bizproc\Debugger\Session\Entity
Definition
DebuggerSessionDocumentTable.php:3
modules
bizproc
lib
Debugger
Session
Entity
DebuggerSessionTable.php
Создано системой
1.10.0