Class Zend_Controller_Action_Helper_Redirector

Description
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Controller/Action/Helper/Redirector.php (line 36)

Zend_Controller_Action_Helper_Abstract
   |
   --Zend_Controller_Action_Helper_Redirector
Variable Summary
 int $_code
 bool $_exit
Method Summary
 void direct (string $url, [ $options = null])
 int getCode ()
 bool getExit ()
 bool getPrependBase ()
 void goto (string $url, [ $options = null])
 true _checkCode (int $code)
Variables
int $_code = 302 (line 42)

HTTP status code for redirects

  • access: protected
bool $_exit = true (line 48)

Whether or not calls to _redirect() should exit script execution

  • access: protected
bool $_prependBase = true (line 55)

Whether or not _redirect() should attempt to prepend the base URL to the

passed URL (if it's a relative URL)

  • access: protected

Inherited Variables

Inherited from Zend_Controller_Action_Helper_Abstract

Zend_Controller_Action_Helper_Abstract::$_actionController
Methods
direct (line 216)

direct(): Perform helper when called as $this->_helper->redirector($url, $options)

  • access: public
void direct (string $url, [ $options = null])
  • string $url
  • array $options
getCode (line 63)

Retrieve HTTP status code to emit on _redirect() call

  • access: public
int getCode ()
getExit (line 106)

Retrieve flag for whether or not _redirect() will exit when finished.

  • access: public
bool getExit ()
getPrependBase (line 131)

Retrieve flag for whether or not _redirect() will prepend the base URL on relative URLs

  • access: public
bool getPrependBase ()
goto (line 157)

Perform a redirect

  • access: public
void goto (string $url, [ $options = null])
  • string $url
  • array $options
setCode (line 93)

Retrieve HTTP status code for _redirect() behaviour

  • access: public
  • int $code
setExit (line 118)

Retrieve exit flag for _redirect() behaviour

  • access: public
  • bool $flag
setPrependBase (line 143)

Retrieve 'prepend base' flag for _redirect() behaviour

  • access: public
Zend_Controller_Action_Helper_Redirector setPrependBase (bool $flag)
  • bool $flag
_checkCode (line 76)

Validate HTTP status redirect code

  • access: protected
  • throws: Zend_Controller_Action_Exception on invalid HTTP status code
true _checkCode (int $code)
  • int $code

Inherited Methods

Inherited From Zend_Controller_Action_Helper_Abstract

 Zend_Controller_Action_Helper_Abstract::getName()
 Zend_Controller_Action_Helper_Abstract::getRequest()
 Zend_Controller_Action_Helper_Abstract::getResponse()
 Zend_Controller_Action_Helper_Abstract::init()
 Zend_Controller_Action_Helper_Abstract::postDispatch()
 Zend_Controller_Action_Helper_Abstract::preDispatch()
 Zend_Controller_Action_Helper_Abstract::setActionController()

Documentation generated on Fri, 06 Apr 2007 18:33:41 -0700 by phpDocumentor 1.3.1