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

Source for file HTMLHiddenInput.class.php

Documentation is available at HTMLHiddenInput.class.php

  1. <?php
  2. /**
  3.  * For including this file you have to define the constant "CLASSPATH".
  4.  * Because every include in the framework depends on the CLASSPATH definition.
  5.  * The CLASSPATH means the relative path to the folder that contains the
  6.  * framework GilliGan.
  7.  *
  8.  * @package    forms
  9.  * @subpackage items
  10.  */
  11. if!defined"CLASSPATH" ) )
  12. {
  13.   echo "<h3>You have to define the constant CLASSPATH!</h3>\n";
  14.   echo "Example: define( 'CLASSPATH', '../path/to/classes/' );\n";
  15.   exit();
  16. }
  17.  
  18. /**
  19.  *
  20.  */
  21. require_onceCLASSPATH."forms/items/ABSTHTMLTextInput.class.php" );
  22.  
  23. /**
  24.  * @package    forms
  25.  * @subpackage items
  26.  * @abstract
  27.  * @version    0.1.42
  28.  * @author     Daniel Plücken <daniel@debakel.net>
  29.  * @license    http://www.gnu.org/copyleft/lesser.html
  30.  *              GNU Lesser General Public License
  31.  * @copyright  Copyright (C) 2004 Daniel Plücken <daniel@debakel.net>
  32.  *
  33.  *  This library is free software; you can redistribute it and/or
  34.  *  modify it under the terms of the GNU Lesser General Public
  35.  *  License as published by the Free Software Foundation; either
  36.  *  version 2.1 of the License.
  37.  *
  38.  *  This library is distributed in the hope that it will be useful,
  39.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  40.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  41.  *  GNU Lesser General Public License for more details.
  42.  *
  43.  *  You should have received a copy of the GNU Lesser General
  44.  *  Public License along with this library; if not, write to the
  45.  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  46.  *  Boston, MA 02111-1307 USA
  47.  */
  48. {
  49.    /**
  50.     * Constructor
  51.     *
  52.     * @access  public
  53.     * @version 1.21
  54.     * @since   0.1.0
  55.     *
  56.     * @param   string  $name 
  57.     * @param   string  $value 
  58.     *
  59.     * @return HTMLHiddenInput 
  60.     */
  61.     function HTMLHiddenInput$name$value )
  62.     {
  63.       $this->name  = $name;
  64.       $this->value = $value;
  65.     }
  66.  
  67.  
  68.  
  69.    /**
  70.     * Returns whether the given parameter is a HTMLHiddenInput-object and it
  71.     * correspond to this object.
  72.     *
  73.     * @access  public
  74.     * @version 1.0
  75.     * @since   0.1.3
  76.     *
  77.     * @param   object  $hidden_form_item_obj 
  78.     *
  79.     * @return  boolean 
  80.     */
  81.    function equals&$hidden_form_item_obj )
  82.    {
  83.       return is_a$hidden_form_item_obj"HTMLHiddenInput" )
  84.           && $hidden_form_item_obj->name == $this->name;
  85.    }
  86.  
  87.  
  88.  
  89.    /**
  90.     * Returns a generated string based on the attributes of this object.
  91.     *
  92.     * @access  public
  93.     * @version 1.02
  94.     * @since   0.1.0
  95.     *
  96.     * @return  string 
  97.     */
  98.    function get()
  99.    return parent::get"hidden" )}
  100. // END of class HTMLHiddenInput
  101. ?>

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