PHP Class Mlp_Redirect_Response

Inheritance: implements Mlp_Redirect_Response_Interface
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Mlp_Language_Negotiation_Interface $negotiation ) Constructor.
redirect ( ) : boolean Redirects if needed.

Private Methods

Method Description
save_session ( string $language ) : void Saves the given language to the noredirect data in the $_SESSION superglobal.

Method Details

__construct() public method

Constructor.
public __construct ( Mlp_Language_Negotiation_Interface $negotiation )
$negotiation Mlp_Language_Negotiation_Interface Language negotiation object.

redirect() public method

Redirects if needed.
public redirect ( ) : boolean
return boolean