9namespace Bitrix\Socialnetwork;
11use Bitrix\Main\Entity;
12use Bitrix\Main\Localization\Loc;
13use Bitrix\Main\NotImplementedException;
14use Bitrix\Main\ORM\Fields\Relations\OneToMany;
15use Bitrix\Main\ORM\Fields\StringField;
16use Bitrix\Main\ORM\Query\Join;
17use Bitrix\Socialnetwork\Internals\Group\GroupEntity;
18use Bitrix\Socialnetwork\Internals\Group\GroupEntityCollection;
20Loc::loadMessages(__FILE__);
45 return GroupEntity::class;
50 return GroupEntityCollection::class;
55 return [self::AUTO_MEMBERSHIP_NO, self::AUTO_MEMBERSHIP_YES];
60 return 'b_sonet_group';
72 'data_type' =>
'integer',
74 'autocomplete' =>
true,
77 'data_type' =>
'boolean',
78 'values' => [
'N',
'Y'],
81 'data_type' =>
'string',
84 'data_type' =>
'integer',
86 'WORKGROUP_SUBJECT' => [
87 'data_type' =>
'\Bitrix\Socialnetwork\WorkgroupSubject',
88 'reference' => [
'=this.SUBJECT_ID' =>
'ref.ID'],
91 'data_type' =>
'string',
92 'save_data_modification' => [
'\Bitrix\Main\Text\Emoji',
'getSaveModificator'],
93 'fetch_data_modification' => [
'\Bitrix\Main\Text\Emoji',
'getFetchModificator'],
96 'data_type' =>
'text',
97 'save_data_modification' => [
'\Bitrix\Main\Text\Emoji',
'getSaveModificator'],
98 'fetch_data_modification' => [
'\Bitrix\Main\Text\Emoji',
'getFetchModificator'],
101 'data_type' =>
'string',
104 'data_type' =>
'boolean',
105 'values' => [
'N',
'Y'],
108 'data_type' =>
'boolean',
109 'values' => [
'N',
'Y'],
112 'data_type' =>
'boolean',
113 'values' => [
'N',
'Y'],
116 'data_type' =>
'datetime',
119 'data_type' =>
'datetime',
122 'data_type' =>
'datetime',
125 'data_type' =>
'integer',
128 'data_type' =>
'string',
131 'data_type' =>
'integer',
133 'WORKGROUP_OWNER' => [
134 'data_type' =>
'\Bitrix\Main\User',
135 'reference' => [
'=this.OWNER_ID' =>
'ref.ID'],
137 'INITIATE_PERMS' => [
138 'data_type' =>
'string',
140 'NUMBER_OF_MEMBERS' => [
141 'data_type' =>
'integer',
143 'NUMBER_OF_MODERATORS' => [
144 'data_type' =>
'integer',
147 'data_type' =>
'boolean',
148 'values' => [
'N',
'Y'],
150 'PROJECT_DATE_START' => [
151 'data_type' =>
'datetime',
153 'PROJECT_DATE_FINISH' => [
154 'data_type' =>
'datetime',
157 'data_type' =>
'text',
160 'data_type' =>
'boolean',
161 'values' => [
'N',
'Y'],
163 'SCRUM_OWNER_ID' => [
164 'data_type' =>
'integer',
166 'SCRUM_MASTER_ID' => [
167 'data_type' =>
'integer',
169 'SCRUM_SPRINT_DURATION' => [
170 'data_type' =>
'integer',
172 'SCRUM_TASK_RESPONSIBLE' => [
173 'data_type' =>
'string',
174 'values' => [
'A',
'M'],
177 ->configureNullable()
178 ->configureDefaultValue(
null),
180 (
new OneToMany(
'SITES', WorkgroupSiteTable::class,
'GROUP'))
181 ->configureJoinType(Join::TYPE_LEFT),
183 (
new OneToMany(
'MEMBERS', UserToGroupTable::class,
'GROUP'))
184 ->configureJoinType(Join::TYPE_LEFT),
198 public static function delete($primary): void
static getAutoMembershipValuesAll()
const AUTO_MEMBERSHIP_YES
static update($primary, array $data)
static getCollectionClass()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)