22 public static function init() {
52 if (is_callable(
'mb_internal_encoding')) {
53 mb_internal_encoding(
"UTF-8");
66 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/online');
67 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/numentities');
68 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/username', 100);
69 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/name', 100);
70 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/password', 100);
71 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/email', 100);
72 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/language', 100);
73 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/default_access', 100);
85 $widgets = [
'online_users',
'new_users',
'content_stats',
'banned_users',
'admin_welcome',
'cron_status'];
111 self::initWalledGarden();
143 'resource' =>
'walled_garden',
elgg_entity_disable_capability(string $type, string $subtype, string $capability)
Disables the capability for a specified type/subtype.
static initEarly()
Initializes the system (contains actions that require to be executed early [priority: 0]) ...
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
elgg_register_notification_method($name)
Register a delivery method for notifications.
elgg_register_notification_event($object_type, $object_subtype, array $actions=[], string $handler=NotificationEventHandler::class)
Register a notification event.
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_register_external_file(string $type, string $name, string $url, string $location= '')
Core registration function for external files.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_entity_enable_capability(string $type, string $subtype, string $capability)
Enables the capability for a specified type/subtype.
static ready()
Actions performed when the system is ready.
elgg_set_config($name, $value)
Set an Elgg configuration value.
static initLate()
Initializes the system (contains actions that require to be executed after regular priority [priority...
static init()
Initializes the system.
elgg_register_ajax_view($view)
Register a view to be available for ajax calls.
elgg_extend_view($view, $view_extension, $priority=501)
Extends a view with another view.
elgg_register_route($name, array $params=[])
Elgg page handler functions.
static initWalledGarden()
Initializes the walled garden logic.
_elgg_services()
Get the global service provider.
elgg_register_pam_handler($handler, string $importance= 'sufficient', string $policy= 'user')
Elgg Simple PAM library Contains functions for managing authentication.
Contains the system event handlers.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.