114 preg_match(
'/group\:([0-9]+)/i',
$username, $matches);
124 return $user->getGUID();
132 return $user->getGUID();
140 if (strpos(
$path,
"?")) {
145 $segments = explode(
'/',
$path);
146 if (isset($segments[1]) && isset($segments[2])) {
147 switch ($segments[1]) {
153 return $user->getGUID();
161 return $entity->getContainerGUID();
294 if (basename(
$request->server->get(
'SCRIPT_FILENAME')) ===
'index.php') {
305 $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_site_url($site_guid=0)
Get the URL for the current (or specified) site.
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_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.