Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Widgets
DefaultWidgetsContainerPermissionsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Widgets
;
4
10
class
DefaultWidgetsContainerPermissionsHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
if
($event->getParam(
'subtype'
) !==
'widget'
) {
21
return
;
22
}
23
24
if
(
elgg_in_context
(
'create_default_widgets'
)) {
25
return
true
;
26
}
27
}
28
}
Elgg\Widgets
Definition:
CreateAdminWidgetsHandler.php:3
elgg_in_context
elgg_in_context(string $context)
Check if this context exists anywhere in the stack.
Definition:
context.php:78
Elgg\Widgets\DefaultWidgetsContainerPermissionsHandler\__invoke
__invoke(\Elgg\Event $event)
Overrides permissions checks when creating widgets for logged out users.
Definition:
DefaultWidgetsContainerPermissionsHandler.php:19
Elgg
Definition:
ActionsService.php:3
Elgg\Widgets\DefaultWidgetsContainerPermissionsHandler
Bypasses permissions for default widgets.
Definition:
DefaultWidgetsContainerPermissionsHandler.php:10
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Sat Dec 14 2024 00:02:53 for Elgg by
1.8.11