23 public static function init() {
46 if (is_callable(
'mb_internal_encoding')) {
47 mb_internal_encoding(
'UTF-8');
63 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/online');
64 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/numentities');
65 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/username', 100);
66 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/name', 100);
67 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/email', 100);
68 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/password', 100);
69 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/language', 100);
70 elgg_extend_view(
'forms/usersettings/save',
'core/settings/account/default_access', 100);
82 $widgets = [
'online_users',
'new_users',
'content_stats',
'banned_users',
'admin_welcome',
'cron_status',
'elgg_blog'];
86 'name' =>
elgg_echo(
"admin:widget:{$widget}"),
87 'description' =>
elgg_echo(
"admin:widget:{$widget}:help"),
88 'context' => [
'admin'],
108 self::initWalledGarden();
140 'resource' =>
'walled_garden',
elgg_register_event_handler(string $event, string $type, callable|string $callback, int $priority=500)
Helper functions for event handling.
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_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_register_route(string $name, array $params=[])
Elgg page handler functions.
if(empty($page_owner)||$owner->guid!==$page_owner->guid) $widgets
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_register_ajax_view(string $view)
Register a view to be available for ajax calls.
elgg_register_external_file(string $type, string $name, string $url, string $location= '')
Core registration function for external files.
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(string $name, $value)
Set an Elgg configuration value.
static initLate()
Initializes the system (contains actions that require to be executed after regular priority [priority...
elgg_register_notification_event(string $object_type, string $object_subtype, array $actions=[], string $handler=NotificationEventHandler::class)
Register a notification event.
static init()
Initializes the system.
static initWalledGarden()
Initializes the walled garden logic.
elgg_register_notification_method(string $name)
Register a delivery method for notifications.
_elgg_services()
Get the global service provider.
elgg_register_simplecache_view(string $view_name)
Registers a view to simple cache.
elgg_get_simplecache_url(string $view)
Get the URL for the cached view.
elgg_extend_view(string $view, string $view_extension, int $priority=501)
Extends a view with another view.
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.