18 throw new \Elgg\EntityPermissionsException();
26 throw new \Elgg\PageNotFoundException(
elgg_echo(
'ElggPlugin:MissingID'));
32 throw new \Elgg\PageNotFoundException(
elgg_echo(
'PluginException:InvalidID', [
$plugin_id]));
49 $form_vars[
'action'] =
"action/{$plugin->getID()}/usersettings/save";
57 'show_owner_block_menu' =>
false,
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
elgg_push_breadcrumb($text, $href=false)
Adds a breadcrumb to the breadcrumbs stack.
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
get_user_by_username($username)
Get user by username.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_view_form($action, $form_vars=[], $body_vars=[])
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_action_exists($action)
Check if an action is registered and its script exists.
elgg_get_plugin_from_id($plugin_id)
Returns an object with the path $path.