Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
workgroup.php
1
<?php
8
namespace
Bitrix\Socialnetwork
;
9
10
use
Bitrix\Main\Entity
;
11
use
Bitrix\Main\Localization\Loc
;
12
use
Bitrix\Main\NotImplementedException
;
13
14
Loc::loadMessages
(__FILE__);
15
32
class
WorkgroupTable
extends
Entity\DataManager
33
{
34
const
AUTO_MEMBERSHIP_YES
=
'Y'
;
35
const
AUTO_MEMBERSHIP_NO
=
'N'
;
36
37
public
static
function
getAutoMembershipValuesAll
()
38
{
39
return
array(self::AUTO_MEMBERSHIP_NO, self::AUTO_MEMBERSHIP_YES);
40
}
41
42
public
static
function
getTableName
()
43
{
44
return
'b_sonet_group'
;
45
}
46
47
public
static
function
getUfId
()
48
{
49
return
'SONET_GROUP'
;
50
}
51
52
public
static
function
getMap
()
53
{
54
$fieldsMap = array(
55
'ID'
=> array(
56
'data_type'
=>
'integer'
,
57
'primary'
=>
true
,
58
'autocomplete'
=>
true
,
59
),
60
'ACTIVE'
=> array(
61
'data_type'
=>
'boolean'
,
62
'values'
=> array(
'N'
,
'Y'
)
63
),
64
'SITE_ID'
=> array(
65
'data_type'
=>
'string'
,
66
),
67
'SUBJECT_ID'
=> array(
68
'data_type'
=>
'integer'
,
69
),
70
'WORKGROUP_SUBJECT'
=> array(
71
'data_type'
=>
'\Bitrix\Socialnetwork\WorkgroupSubject'
,
72
'reference'
=> array(
'=this.SUBJECT_ID'
=>
'ref.ID'
)
73
),
74
'NAME'
=> array(
75
'data_type'
=>
'string'
,
76
'save_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getSaveModificator'
),
77
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
78
),
79
'DESCRIPTION'
=> array(
80
'data_type'
=>
'text'
,
81
'save_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getSaveModificator'
),
82
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
83
),
84
'KEYWORDS'
=> array(
85
'data_type'
=>
'string'
86
),
87
'CLOSED'
=> array(
88
'data_type'
=>
'boolean'
,
89
'values'
=> array(
'N'
,
'Y'
)
90
),
91
'VISIBLE'
=> array(
92
'data_type'
=>
'boolean'
,
93
'values'
=> array(
'N'
,
'Y'
)
94
),
95
'OPENED'
=> array(
96
'data_type'
=>
'boolean'
,
97
'values'
=> array(
'N'
,
'Y'
)
98
),
99
'DATE_CREATE'
=> array(
100
'data_type'
=>
'datetime'
101
),
102
'DATE_UPDATE'
=> array(
103
'data_type'
=>
'datetime'
104
),
105
'DATE_ACTIVITY'
=> array(
106
'data_type'
=>
'datetime'
107
),
108
'IMAGE_ID'
=> array(
109
'data_type'
=>
'integer'
,
110
),
111
'AVATAR_TYPE'
=> [
112
'data_type'
=>
'string'
,
113
],
114
'OWNER_ID'
=> array(
115
'data_type'
=>
'integer'
,
116
),
117
'WORKGROUP_OWNER'
=> array(
118
'data_type'
=>
'\Bitrix\Main\User'
,
119
'reference'
=> array(
'=this.OWNER_ID'
=>
'ref.ID'
)
120
),
121
'INITIATE_PERMS'
=> array(
122
'data_type'
=>
'string'
123
),
124
'NUMBER_OF_MEMBERS'
=> array(
125
'data_type'
=>
'integer'
,
126
),
127
'NUMBER_OF_MODERATORS'
=> array(
128
'data_type'
=>
'integer'
,
129
),
130
'PROJECT'
=> array(
131
'data_type'
=>
'boolean'
,
132
'values'
=> array(
'N'
,
'Y'
)
133
),
134
'PROJECT_DATE_START'
=> array(
135
'data_type'
=>
'datetime'
136
),
137
'PROJECT_DATE_FINISH'
=> array(
138
'data_type'
=>
'datetime'
139
),
140
'SEARCH_INDEX'
=> array(
141
'data_type'
=>
'text'
,
142
),
143
'LANDING'
=> array(
144
'data_type'
=>
'boolean'
,
145
'values'
=> array(
'N'
,
'Y'
)
146
),
147
'SCRUM_OWNER_ID'
=> array(
148
'data_type'
=>
'integer'
,
149
),
150
'SCRUM_MASTER_ID'
=> array(
151
'data_type'
=>
'integer'
,
152
),
153
'SCRUM_SPRINT_DURATION'
=> array(
154
'data_type'
=>
'integer'
,
155
),
156
'SCRUM_TASK_RESPONSIBLE'
=> [
157
'data_type'
=>
'string'
,
158
'values'
=> [
'A'
,
'M'
]
159
],
160
);
161
162
return
$fieldsMap;
163
}
164
165
public
static
function
add
(array $data)
166
{
167
throw
new
NotImplementedException
(
"Use CSocNetGroup class."
);
168
}
169
170
public
static
function
update
($primary, array $data)
171
{
172
throw
new
NotImplementedException
(
"Use CSocNetGroup class."
);
173
}
174
175
public
static
function
delete
($primary)
176
{
177
throw
new
NotImplementedException
(
"Use CSocNetGroup class."
);
178
}
179
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Socialnetwork\WorkgroupTable
Definition
workgroup.php:33
Bitrix\Socialnetwork\WorkgroupTable\getMap
static getMap()
Definition
workgroup.php:52
Bitrix\Socialnetwork\WorkgroupTable\getUfId
static getUfId()
Definition
workgroup.php:47
Bitrix\Socialnetwork\WorkgroupTable\getAutoMembershipValuesAll
static getAutoMembershipValuesAll()
Definition
workgroup.php:37
Bitrix\Socialnetwork\WorkgroupTable\AUTO_MEMBERSHIP_YES
const AUTO_MEMBERSHIP_YES
Definition
workgroup.php:34
Bitrix\Socialnetwork\WorkgroupTable\add
static add(array $data)
Definition
workgroup.php:165
Bitrix\Socialnetwork\WorkgroupTable\AUTO_MEMBERSHIP_NO
const AUTO_MEMBERSHIP_NO
Definition
workgroup.php:35
Bitrix\Socialnetwork\WorkgroupTable\update
static update($primary, array $data)
Definition
workgroup.php:170
Bitrix\Socialnetwork\WorkgroupTable\getTableName
static getTableName()
Definition
workgroup.php:42
Bitrix\Socialnetwork
modules
socialnetwork
lib
workgroup.php
Создано системой
1.10.0