Source for file CreateRecordButton.php

Documentation is available at CreateRecordButton.php

  1. <?php
  2. /* -------------------------------------------------------------------------- */
  3. /* Module      : CreateRecordButton                                           */
  4. /*                                                                            */
  5. /* Version History :                                                          */
  6. /*                                                                            */
  7. /* Date        Vsn     Author          Description                            */
  8. /* -------------------------------------------------------------------------- */
  9. /* 24/02/09    1.0     Sonja Lindo     Initial Version                        */
  10. /* -------------------------------------------------------------------------- */
  11. /**
  12.  * Used to display a link to a 'Create Record' page
  13.  * 
  14.  * @package Default
  15.  */
  16. class Zend_View_Helper_CreateRecordButton extends Zend_View_Helper_Abstract
  17. {
  18.     /**
  19.      * @return mixed String containing all HTML for the button
  20.      */
  21.     public function createrecordbutton($in_Text$in_Table$in_Keys)
  22.     {
  23.         return "<div>
  24.                     <a href=\""
  25.                     .  $this->view->url (
  26.                                             array
  27.                                             (
  28.                                                 'controller' => 'admin',
  29.                                                 'action'     => 'insert',
  30.                                                 'table'      => $in_Table,
  31.                                                 'ids'        => $in_Keys
  32.                                             )
  33.                                         )
  34.                      . "\">Create New $in_Text
  35.                    </a>
  36.                </div>";
  37.     }
  38. }

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