Elgg
Version master
engine
classes
Elgg
WalledGarden
RemovePublicAccessHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\WalledGarden
;
4
10
class
RemovePublicAccessHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
if
(!
_elgg_services
()->config->walled_garden) {
21
return
;
22
}
23
24
$accesses = $event->getValue();
25
if
(isset($accesses[
ACCESS_PUBLIC
])) {
26
unset($accesses[
ACCESS_PUBLIC
]);
27
}
28
29
return
$accesses;
30
}
31
}
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Elgg\WalledGarden\RemovePublicAccessHandler
Remove public access for walled garden.
Definition:
RemovePublicAccessHandler.php:10
Elgg\WalledGarden\RemovePublicAccessHandler\__invoke
__invoke(\Elgg\Event $event)
Remove public access for walled gardens.
Definition:
RemovePublicAccessHandler.php:19
ACCESS_PUBLIC
const ACCESS_PUBLIC
Definition:
constants.php:12
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:353
Elgg\WalledGarden
Definition:
ExtendPublicPagesHandler.php:3
Elgg
Definition:
ActionsService.php:3
Generated on Fri Aug 29 2025 00:01:58 for Elgg by
1.9.1