Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DebuggerSessionTable.php
1<?php
2
4
10
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29