Source for file GoBackLink.php

Documentation is available at GoBackLink.php

  1. <?php
  2. /* -------------------------------------------------------------------------- */
  3. /* Module      : GoBackLink                                                   */
  4. /*                                                                            */
  5. /* Version History :                                                          */
  6. /*                                                                            */
  7. /* Date        Vsn     Author          Description                            */
  8. /* -------------------------------------------------------------------------- */
  9. /* 27/02/09    1.0     Sonja Lindo     Initial Version                        */
  10. /* -------------------------------------------------------------------------- */
  11. /**
  12.  * Used to display a link allowing the user to go back one page
  13.  * 
  14.  * @package Default
  15.  */
  16. class Zend_View_Helper_GoBackLink extends Zend_View_Helper_Abstract
  17. {
  18.     /**
  19.      * @return mixed String containing all HTML for the button
  20.      */
  21.     public function gobacklink()
  22.     {
  23.         // 'BACK' url
  24.         $session Session_Wrapper::getInstance();
  25.         if ($session->get("back_action"!= null)
  26.         {
  27.             $part_url "/" $session->get("back_controller".
  28.                         "/" $session->get("back_action");
  29.             $back_url "<br /><a href=\"" $part_url ."\">Back</a>";
  30.         else {
  31.             $back_url "";
  32.         }
  33.         return $back_url;
  34.     }
  35. }

Documentation generated on Fri, 27 Mar 2009 13:48:35 +0000 by phpDocumentor 1.4.1