Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Groups
MemberPermissionsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Groups
;
4
10
class
MemberPermissionsHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
21
$container
= $event->getParam(
'container'
);
22
if
(!
$container
instanceof \
ElggGroup
) {
23
return
;
24
}
25
26
$user
= $event->getUserParam();
27
if
(!
$user
instanceof \
ElggUser
) {
28
return
;
29
}
30
31
if
(
$container
->isMember(
$user
)) {
32
return
true
;
33
}
34
}
35
}
Elgg\Groups\MemberPermissionsHandler\__invoke
__invoke(\Elgg\Event $event)
Allow group members to write to the group container.
Definition:
MemberPermissionsHandler.php:19
Elgg\Groups\MemberPermissionsHandler
Check if content can be created in a group based on group membership of a user.
Definition:
MemberPermissionsHandler.php:10
Elgg
Definition:
ActionsService.php:3
ElggGroup
Definition:
ElggGroup.php:14
$user
$user
Definition:
ban.php:7
$container
$container
Definition:
delete.php:23
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
ElggUser
Definition:
ElggUser.php:28
Elgg\Groups
Definition:
MemberPermissionsHandler.php:3
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11