Elgg  Version 4.x
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 (\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

 $session
 
 $is_xhr
 
 $site_url
 
 $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 ( \ElggSession  $session,
\Elgg\Http\Request  $request,
\Elgg\Config  $config 
)

Constructor.

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

Definition at line 36 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 48 of file RedirectService.php.

Member Data Documentation

Elgg\RedirectService::$current_url
protected

Definition at line 27 of file RedirectService.php.

Elgg\RedirectService::$is_xhr
protected

Definition at line 17 of file RedirectService.php.

Elgg\RedirectService::$session
protected

Definition at line 12 of file RedirectService.php.

Elgg\RedirectService::$site_url
protected

Definition at line 22 of file RedirectService.php.


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