[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/net/src/ -> lmbMetaRedirectStrategy.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  
  10  /**

  11   * class lmbMetaRedirectStrategy.

  12   *

  13   * @package net

  14   * @version $Id: lmbMetaRedirectStrategy.class.php 5945 2007-06-06 08:31:43Z pachanga $

  15   */
  16  class lmbMetaRedirectStrategy
  17  {
  18    protected $template_path;
  19  
  20    function __construct($template_path = null)
  21    {
  22      $this->template_path = $template_path;
  23    }
  24  
  25    function redirect($response, $path)
  26    {
  27      $response->write($this->_prepareDefaultResponse('Redirecting...', $path));
  28    }
  29  
  30    protected function _prepareDefaultResponse($message, $path)
  31    {
  32      return "<html><head><meta http-equiv=refresh content='0;url={$path}'></head>
  33              <body bgcolor=white>{$message}</body></html>";
  34    }
  35  
  36  }
  37  
  38  ?>


Generated: Sat Aug 30 04:38:32 2008 Cross-referenced by PHPXref 0.7