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();
212 array_pop($CONFIG->context);
213 array_push($CONFIG->context,
$context);
229 if (!$CONFIG->context) {
233 return $CONFIG->context[count($CONFIG->context) - 1];
246 array_push($CONFIG->context,
$context);
258 return array_pop($CONFIG->context);
276 return in_array(
$context, $CONFIG->context);
298 if (basename(
$request->server->get(
'SCRIPT_FILENAME')) ===
'index.php') {
page_owner_boot()
Initializes the page owner functions.
$guid
Removes an admin notice.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
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)
Trigger a Plugin Hook and run all handler callbacks registered to that hook:type. ...
elgg_get_context()
Get the current context.
elgg global
Pointer to the global 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_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
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_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.