Elgg
Version master
engine
classes
Elgg
Friends
CreateAclHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Friends
;
4
10
class
CreateAclHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
$user
= $event->getObject();
21
if
(!
$user
instanceof \
ElggUser
) {
22
return
;
23
}
24
25
elgg_create_access_collection
(
'friends'
,
$user
->guid,
'friends'
);
26
}
27
}
$user
$user
Definition:
ban.php:7
ElggUser
Definition:
ElggUser.php:28
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Elgg\Friends\CreateAclHandler
Creates ACL for friends.
Definition:
CreateAclHandler.php:10
Elgg\Friends\CreateAclHandler\__invoke
__invoke(\Elgg\Event $event)
Creates a Friends ACL for a user.
Definition:
CreateAclHandler.php:19
elgg_create_access_collection
elgg_create_access_collection(string $name, int $owner_guid=0, ?string $subtype=null)
Creates a new access collection.
Definition:
access.php:147
Elgg\Friends
Definition:
AclNameHandler.php:3
Elgg
Definition:
ActionsService.php:3
Generated on Fri Aug 29 2025 00:01:58 for Elgg by
1.9.1