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']);
Models an event passed to event handlers.
Action validation exception.
Some logic implemented before action is executed.
cleanupStickyValues(\Elgg\Event $event)
Automatically cleanup sticky form values after a successfull action.
__invoke(\Elgg\Request $request)
Pre-action logic.
prepareStickyForm()
Save the action input in sticky form values.
_elgg_services()
Get the global service provider.