Elgg  Version master
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

◆ __construct()

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

◆ setLastForwardFrom()

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

◆ $current_url

string Elgg\RedirectService::$current_url
protected

Definition at line 13 of file RedirectService.php.

◆ $is_xhr

bool Elgg\RedirectService::$is_xhr
protected

Definition at line 9 of file RedirectService.php.

◆ $site_url

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: