8 if (
$title ==
"error:$type:title") {
20 '400' =>
'Bad Request',
21 '401' =>
'Unauthorized',
24 '407' =>
'Proxy Authentication Required',
25 '500' =>
'Internal Server Error',
26 '503' =>
'Service Unavailable',
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
if(isset($vars['class'])) $vars['class']
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
if(isset($httpCodes[$type])) $layout
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.