113 preg_match(
'/group\:([0-9]+)/i',
$username, $matches);
123 return $user->getGUID();
131 return $user->getGUID();
137 if (isset($segments[1]) && isset($segments[2])) {
138 switch ($segments[1]) {
144 return $user->getGUID();
152 return $entity->getContainerGUID();
275 if (basename($request->server->get(
'SCRIPT_FILENAME')) ===
'index.php') {
276 $context = $request->getFirstUrlSegment();
298 $events->registerHandler(
'boot',
'system',
'page_owner_boot');
page_owner_boot()
Initializes the page owner functions.
$guid
Removes an admin notice.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_set_context_stack(array $stack)
Set the entire context stack.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
get_user_by_username($username)
Get user by username.
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
elgg_set_context($context)
Sets the page context.
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_get_context()
Get the current context.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
elgg_push_context($context)
Push a context onto the top of the stack.
default_page_owner_handler($hook, $entity_type, $returnvalue, $params)
Sets the page owner based on request.
elgg_get_context_stack()
Get the entire context stack (e.g.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
get_entity($guid)
Loads and returns an entity object from a guid.
_elgg_set_initial_context(\Elgg\Http\Request $request)
Set an initial context if using index.php front controller.