Elgg  Version 6.1
Public Member Functions | Protected Attributes | List of all members
Elgg\RedirectService Class Reference

Handles common tasks when redirecting a request. More...

Public Member Functions

 __construct (protected\ElggSession $session,\Elgg\Http\Request $request,\Elgg\Config $config)
 Constructor. More...
 
 setLastForwardFrom ()
 Capture the URL the user requested when they were redirected. More...
 

Protected Attributes

bool $is_xhr
 
string $site_url
 
string $current_url
 

Detailed Description

Handles common tasks when redirecting a request.

Definition at line 7 of file RedirectService.php.

Constructor & Destructor Documentation

Elgg\RedirectService::__construct ( protected\ElggSession  $session,
\Elgg\Http\Request  $request,
\Elgg\Config  $config 
)

Constructor.

Parameters
\ElggSession$sessionElgg session
\Elgg\Http\Request$requestRequest
\Elgg\Config$configConfiguration

Definition at line 22 of file RedirectService.php.

Member Function Documentation

Elgg\RedirectService::setLastForwardFrom ( )

Capture the URL the user requested when they were redirected.

Returns
void

Definition at line 37 of file RedirectService.php.

Member Data Documentation

string Elgg\RedirectService::$current_url
protected

Definition at line 13 of file RedirectService.php.

bool Elgg\RedirectService::$is_xhr
protected

Definition at line 9 of file RedirectService.php.

string Elgg\RedirectService::$site_url
protected

Definition at line 11 of file RedirectService.php.


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