Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
}
Elgg\Friends
Definition:
AclNameHandler.php:3
Elgg
Definition:
ActionsService.php:3
Elgg\Friends\CreateAclHandler
Creates ACL for friends.
Definition:
CreateAclHandler.php:10
$user
$user
Definition:
ban.php:7
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\CreateAclHandler\__invoke
__invoke(\Elgg\Event $event)
Creates a Friends ACL for a user.
Definition:
CreateAclHandler.php:19
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
ElggUser
Definition:
ElggUser.php:28
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11