35 return _elgg_services()->router->registerPageHandler($identifier, $function);
118 if (null === $group_guid) {
129 if (!$visibility->shouldHideItems) {
139 $forward_reason =
'login';
141 $forward_reason =
'member';
145 'non_member' =>
'membershiprequired',
146 'logged_out' =>
'loggedinrequired',
147 'no_access' =>
'noaccess',
254 if (
$title ==
"error:$type:title") {
266 '400' =>
'Bad Request',
267 '401' =>
'Unauthorized',
268 '403' =>
'Forbidden',
269 '404' =>
'Not Found',
270 '407' =>
'Proxy Authentication Required',
271 '500' =>
'Internal Server Error',
272 '503' =>
'Service Unavailable',
275 if (isset($httpCodes[
$type])) {
276 header(
"HTTP/1.1 $type {$httpCodes[$type]}");
elgg_list_river(array $options=array())
List river items.
_elgg_page_handler_init()
Initializes the page handler/routing system.
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_group_gatekeeper($forward=true, $group_guid=null)
May the current user access item(s) on this page? If the page owner is a group, membership, visibility, and logged in status are taken into account.
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
admin_gatekeeper()
Alias of elgg_admin_gatekeeper()
elgg_entity_exists($guid)
Does an entity exist?
$guid
Removes an admin notice.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_entity_gatekeeper($guid, $type=null, $subtype=null)
Can the viewer see this entity?
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
static factory($container_guid, $use_cache=true)
Determine visibility of items within a container for the current user.
elgg_error_page_handler($hook, $type, $result, $params)
Serve an error page.
group_gatekeeper($forward=true, $page_owner_guid=null)
May the current user access item(s) on this page? If the page owner is a group, membership, visibility, and logged in status are taken into account.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an ElggEntity and optionally for type and subtype.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
elgg system_message
Wrapper function for system_messages.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
elgg_unregister_page_handler($identifier)
Unregister a page handler for an identifier.
elgg_admin_gatekeeper()
Used at the top of a page to mark it as admin only.
elgg register_error
Wrapper function for system_messages.
$content
Set robots.txt action.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
clearfix elgg elgg elgg elgg page header
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
gatekeeper()
Alias of elgg_gatekeeper()
elgg_front_page_handler()
Front page handler.
get_entity($guid)
Loads and returns an entity object from a guid.