39 if ($route instanceof
Route) {
121 return $user->getGUID();
128 return $user->getGUID();
134 if (isset($segments[1]) && isset($segments[2])) {
135 switch ($segments[1]) {
141 return $user->getGUID();
149 return $entity->getContainerGUID();
277 $events->registerHandler(
'init',
'system',
'_elgg_pageowner_init');
$params
Saves global plugin settings.
$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.
Base class for events and hooks.
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
_elgg_pageowner_init()
Set up default page owner default.
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_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_services()
Get the global service provider.
elgg_get_context_stack()
Get the entire context stack (e.g.
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.