Elgg  Version 3.0
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, $is_xhr, $site_url, $current_url)
 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 9 of file RedirectService.php.

Constructor & Destructor Documentation

Elgg\RedirectService::__construct ( ElggSession  $session,
  $is_xhr,
  $site_url,
  $current_url 
)

Constructor.

Parameters
ElggSession$sessionElgg session
bool$is_xhrIs the request from Ajax?
string$site_urlSite URL
string$current_urlCurrent URL

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

Member Data Documentation

Elgg\RedirectService::$current_url
protected

Definition at line 29 of file RedirectService.php.

Elgg\RedirectService::$is_xhr
protected

Definition at line 19 of file RedirectService.php.

Elgg\RedirectService::$session
protected

Definition at line 14 of file RedirectService.php.

Elgg\RedirectService::$site_url
protected

Definition at line 24 of file RedirectService.php.


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