22 return _elgg_services()->actions->execute(implode(
'/', $segments));
269 elgg_deprecated_notice(__FUNCTION__ .
' is deprecated and is no longer used as a plugin hook handler',
'2.3');
280 elgg_deprecated_notice(__FUNCTION__ .
' is deprecated and is no longer used as a plugin hook handler',
'2.3');
306 $events->registerHandler(
'init',
'system',
'actions_init');
HTTP response builder interface.
elgg_is_xhr()
Checks whether the request was requested via ajax.
action($action, $forwarder="")
Perform an action.
action_gatekeeper($action)
Validates the presence of action tokens.
elgg_action_exists($action)
Check if an action is registered and its script exists.
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
init_site_secret()
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL)...
generate_action_token($timestamp)
Generate an action token.
actions_init()
Initialize some ajaxy actions features private.
elgg_build_hmac($data)
Get an HMAC token builder/validator object.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
ajax_forward_hook($hook, $type, $reason, $params)
Catch calls to forward() in ajax request and force an exit.
get_site_secret()
Returns the site secret.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
_elgg_action_handler(array $segments)
Handle a request for an action.
validate_action_token($visible_errors=true, $token=null, $ts=null)
Validate an action token.
_elgg_get_site_secret_strength()
Get the strength of the site secret.
_elgg_csrf_token_refresh()
Send an updated CSRF token, provided the page's current tokens were not fake.
elgg_register_action($action, $filename="", $access= 'logged_in')
Registers an action.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
ajax_action_hook()
Buffer all output echo'd directly in the action for inclusion in the returned JSON.
elgg_unregister_action($action)
Unregisters an action.