34 $route = $request->getRoute();
35 list(,
$action) = explode(
':', $route, 2);
40 $result = $request->elgg()->events->triggerResults(
'action:validate',
$action, [
'request' => $request],
true);
46 $action_timeout = $request->elgg()->config->action_time_limit;
47 if (isset($action_timeout)) {
48 set_time_limit($action_timeout);
59 $this->form_name = $this->request->getParam(
'_elgg_sticky_form_name');
61 if (empty($this->form_name)) {
66 $ignored_fields = (string) $this->request->getParam(
'_elgg_sticky_ignored_fields');
69 _elgg_services()->stickyForms->makeStickyForm($this->form_name, $ignored_fields);
72 $this->request->elgg()->events->registerHandler(
'response',
'all', [$this,
'cleanupStickyValues']);
cleanupStickyValues(\Elgg\Event $event)
Automatically cleanup sticky form values after a successfull action.
__invoke(\Elgg\Request $request)
Pre-action logic.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
prepareStickyForm()
Save the action input in sticky form values.
Some logic implemented before action is executed.
_elgg_services()
Get the global service provider.
Action validation exception.
Models an event passed to event handlers.