Elgg  Version master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Elgg\Router\Middleware\ActionMiddleware Class Reference

Some logic implemented before action is executed. More...

Public Member Functions

 __invoke (\Elgg\Request $request)
 Pre-action logic. More...
 
 cleanupStickyValues (\Elgg\Event $event)
 Automatically cleanup sticky form values after a successfull action. More...
 

Protected Member Functions

 prepareStickyForm ()
 Save the action input in sticky form values. More...
 

Protected Attributes

 $request
 
 $form_name
 

Detailed Description

Some logic implemented before action is executed.

Definition at line 11 of file ActionMiddleware.php.

Member Function Documentation

Elgg\Router\Middleware\ActionMiddleware::__invoke ( \Elgg\Request  $request)

Pre-action logic.

Parameters
\Elgg\Request$requestRequest
Returns
void
Exceptions
ValidationException

Definition at line 31 of file ActionMiddleware.php.

Elgg\Router\Middleware\ActionMiddleware::cleanupStickyValues ( \Elgg\Event  $event)

Automatically cleanup sticky form values after a successfull action.

Parameters
\Elgg\Event$event'response', 'action:all'
Returns
void
Since
5.0

Definition at line 83 of file ActionMiddleware.php.

Elgg\Router\Middleware\ActionMiddleware::prepareStickyForm ( )
protected

Save the action input in sticky form values.

Returns
void
Since
5.0

Definition at line 58 of file ActionMiddleware.php.

Member Data Documentation

Elgg\Router\Middleware\ActionMiddleware::$form_name
protected

Definition at line 21 of file ActionMiddleware.php.

Elgg\Router\Middleware\ActionMiddleware::$request
protected

Definition at line 16 of file ActionMiddleware.php.


The documentation for this class was generated from the following file: