-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathGroup.php
237 lines (234 loc) · 6.11 KB
/
Group.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php
/**
* Generated 2019-11-17T14:35:07+00:00 16.0.19506.12022
*/
namespace Office365\SharePoint;
use Office365\Runtime\ResourcePath;
/**
* Represents
* a collection of users. The CanCurrentUserEditMembership, CanCurrentUserManageGroup
* and CanCurrentUserViewMembership properties are not included in the default
* scalar property set for this type.
*/
class Group extends Principal
{
/**
* Gets a collection of user objects that represents all of the users in the group.
* @return UserCollection
*/
public function getUsers()
{
return $this->getProperty("Users",
new UserCollection($this->getContext(),new ResourcePath("Users", $this->getResourcePath())));
}
/**
* Specifies
* whether a member of the group
* can add and remove members from the group.
* @return bool
*/
public function getAllowMembersEditMembership()
{
return $this->getProperty("AllowMembersEditMembership");
}
/**
* Specifies
* whether a member of the group
* can add and remove members from the group.
* @var bool
*/
public function setAllowMembersEditMembership($value)
{
$this->setProperty("AllowMembersEditMembership", $value, true);
}
/**
* Specifies
* whether to allow users to request to join or leave in the group.
*
* @return bool
*/
public function getAllowRequestToJoinLeave()
{
return $this->getProperty("AllowRequestToJoinLeave");
}
/**
* Specifies
* whether to allow users to request to join or leave in the group.
*
* @var bool
*/
public function setAllowRequestToJoinLeave($value)
{
$this->setProperty("AllowRequestToJoinLeave", $value, true);
}
/**
* Specifies
* whether requests to join or leave the group are
* automatically accepted.
* @return bool
*/
public function getAutoAcceptRequestToJoinLeave()
{
return $this->getProperty("AutoAcceptRequestToJoinLeave");
}
/**
* Specifies
* whether requests to join or leave the group are
* automatically accepted.
* @var bool
*/
public function setAutoAcceptRequestToJoinLeave($value)
{
$this->setProperty("AutoAcceptRequestToJoinLeave", $value, true);
}
/**
* Specifies
* whether the current user can add
* and remove members from the group.
* @return bool
*/
public function getCanCurrentUserEditMembership()
{
return $this->getProperty("CanCurrentUserEditMembership");
}
/**
* Specifies
* whether the current user can add
* and remove members from the group.
* @var bool
*/
public function setCanCurrentUserEditMembership($value)
{
$this->setProperty("CanCurrentUserEditMembership", $value, true);
}
/**
* Specifies
* whether the current user can
* change settings on the group.
* @return bool
*/
public function getCanCurrentUserManageGroup()
{
return $this->getProperty("CanCurrentUserManageGroup");
}
/**
* Specifies
* whether the current user can
* change settings on the group.
* @var bool
*/
public function setCanCurrentUserManageGroup($value)
{
$this->setProperty("CanCurrentUserManageGroup", $value, true);
}
/**
* Specifies
* whether the current user can
* view the membership of the group.
* @return bool
*/
public function getCanCurrentUserViewMembership()
{
return $this->getProperty("CanCurrentUserViewMembership");
}
/**
* Specifies
* whether the current user can
* view the membership of the group.
* @var bool
*/
public function setCanCurrentUserViewMembership($value)
{
$this->setProperty("CanCurrentUserViewMembership", $value, true);
}
/**
* Specifies
* the description for the group.
* @return string
*/
public function getDescription()
{
return $this->getProperty("Description");
}
/**
* Specifies
* the description for the group.
* @var string
*/
public function setDescription($value)
{
$this->setProperty("Description", $value, true);
}
/**
* Specifies
* whether viewing the membership of the group
* is restricted to members of the
* group.
* @return bool
*/
public function getOnlyAllowMembersViewMembership()
{
return $this->getProperty("OnlyAllowMembersViewMembership");
}
/**
* Specifies
* whether viewing the membership of the group
* is restricted to members of the
* group.
* @var bool
*/
public function setOnlyAllowMembersViewMembership($value)
{
$this->setProperty("OnlyAllowMembersViewMembership", $value, true);
}
/**
* Specifies
* the name of the owner of the group.
* @return string
*/
public function getOwnerTitle()
{
return $this->getProperty("OwnerTitle");
}
/**
* Specifies
* the name of the owner of the group.
* @var string
*/
public function setOwnerTitle($value)
{
$this->setProperty("OwnerTitle", $value, true);
}
/**
* Specifies
* the e-mail
* address to which requests to join or leave the group
* are sent.
* @return string
*/
public function getRequestToJoinLeaveEmailSetting()
{
return $this->getProperty("RequestToJoinLeaveEmailSetting");
}
/**
* Specifies
* the e-mail
* address to which requests to join or leave the group
* are sent.
* @var string
*/
public function setRequestToJoinLeaveEmailSetting($value)
{
$this->setProperty("RequestToJoinLeaveEmailSetting", $value, true);
}
/**
* Specifies
* the name of the owner of the group.
* @return Principal
*/
public function getOwner()
{
return $this->getProperty("Owner",
new Principal($this->getContext(),new ResourcePath("Owner", $this->getResourcePath())));
}
}