Axiom (v1.2.0)

A lightweight PHP framework
axRedirectException Class Reference

Redirect Exception Class. More...

Public Member Functions

 __construct ($url, $method=self::REDIRECT_PERMANENT)
 Constructor.
 getUrl ()
 Get the redirection URL.
 getMethod ()
 Get the redirection method.
 getHeaderString ()
 Get the proper header string to send to the browser.
 __toString ()
 Get the header from this exception as string.

Data Fields

const REDIRECT_PERMANENT = 1
const REDIRECT_REFRESH = 2
const REFRESH_DELAY = 5

Protected Attributes

 $_url
 URL to redirect to.
 $_method
 Redirect method.

Detailed Description

Redirect Exception Class.

Todo:
Redirect Exception long description
Author:
Delespierre
License:
http://www.gnu.org/licenses/lgpl.html Lesser General Public Licence version 3

Definition at line 17 of file axRedirectException.class.php.


Constructor & Destructor Documentation

axRedirectException::__construct ( url,
method = self::REDIRECT_PERMANENT 
)

Constructor.

Parameters:
string$url
integer$methodaxRedirectException::REDIRECT_PERMANENT or axRedirectException::REDIRECT_REFRESH

Definition at line 49 of file axRedirectException.class.php.


Member Function Documentation

Get the header from this exception as string.

Returns:
string

Definition at line 90 of file axRedirectException.class.php.

Get the proper header string to send to the browser.

Will return false if the redirect method is not set.

Returns:
string

Definition at line 78 of file axRedirectException.class.php.

Get the redirection method.

Returns:
integer

Definition at line 67 of file axRedirectException.class.php.

Get the redirection URL.

Returns:
string

Definition at line 59 of file axRedirectException.class.php.


Field Documentation

integer axRedirectException::$_method [protected]

Redirect method.

Definition at line 42 of file axRedirectException.class.php.

string axRedirectException::$_url [protected]

URL to redirect to.

Definition at line 36 of file axRedirectException.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables