forms
[ class tree: forms ] [ index: forms ] [ all elements ]

Source for file HTMLResetButton.class.php

Documentation is available at HTMLResetButton.class.php

  1. <?php
  2. /**
  3.  * @package    forms
  4.  * @subpackage items
  5.  */
  6.  
  7. /**
  8.  *
  9.  */
  10. require_onceCLASSPATH."forms/items/ABSTHTMLFormItem.class.php" );
  11.  
  12. /**
  13.  * A class to generate a reset button.
  14.  *
  15.  * @package    forms
  16.  * @subpackage items
  17.  * @version    1.3
  18.  * @author     Daniel Plücken <daniel@debakel.net>
  19.  * @license    http://www.gnu.org/copyleft/lesser.html
  20.  *              GNU Lesser General Public License
  21.  * @copyright  Copyright (C) 2004 Daniel Plücken <daniel@debakel.net>
  22.  *
  23.  *  This library is free software; you can redistribute it and/or
  24.  *  modify it under the terms of the GNU Lesser General Public
  25.  *  License as published by the Free Software Foundation; either
  26.  *  version 2.1 of the License.
  27.  *
  28.  *  This library is distributed in the hope that it will be useful,
  29.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  30.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31.  *  GNU Lesser General Public License for more details.
  32.  *
  33.  *  You should have received a copy of the GNU Lesser General
  34.  *  Public License along with this library; if not, write to the
  35.  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  36.  *  Boston, MA 02111-1307 USA
  37.  */
  38. {
  39.    /**
  40.     * Constructor
  41.     *
  42.     * @version 1.1
  43.     * @since   1.0
  44.     * @author  Daniel Plücken <daniel@debakel.net>
  45.     * @access  public
  46.     * @param   string  $name 
  47.     * @param   string  $value 
  48.     */
  49.    function HTMLResetButton$name$value )
  50.    {
  51.      $this->name  = $name;
  52.      $this->value = $value;
  53.    }
  54.  
  55.  
  56.  
  57.    /**
  58.     * Returns a generated string based on the attributes of this object.
  59.     *
  60.     * @version 1.0
  61.     * @since   1.0
  62.     * @author  Daniel Plücken <daniel@debakel.net>
  63.     * @access  public
  64.     * @return  string 
  65.     */
  66.    function get()
  67.    {
  68.       $out  "<input type=\"reset\" name=\"".$this->name."\"";
  69.       $out .= !empty$this->value )
  70.               ? " value=\"".$this->value."\""
  71.               : "";
  72.       $out .= !empty$this->freestyle )
  73.               ? " style=\"".$this->freestyle."\""
  74.               : "";
  75.       $out .= " />";
  76.  
  77.       return $out;
  78.    }
  79. // END of class HTMLSubmitButton
  80. ?>

Documentation generated on Thu, 05 Jun 2008 19:12:53 +0200 by phpDocumentor 1.4.1