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

Source for file HTMLFileInput.class.php

Documentation is available at HTMLFileInput.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.  
  12. if!defined"CLASSPATH" ) )
  13. {
  14.   echo "<h3>You have to define the constant CLASSPATH!</h3>\n";
  15.   echo "Example: define( 'CLASSPATH', '../path/to/classes/' );\n";
  16.   exit();
  17. }
  18.  
  19. /**
  20.  *
  21.  */
  22. require_onceCLASSPATH."forms/items/HTMLTextInput.class.php" );
  23.  
  24. /**
  25.  * A class to generate a input to uploading files.
  26.  *
  27.  * @package    forms
  28.  * @subpackage items
  29.  * @version    0.1.0
  30.  * @author     Daniel Plücken <daniel@debakel.net>
  31.  * @license    http://www.gnu.org/copyleft/lesser.html
  32.  *              GNU Lesser General Public License
  33.  * @copyright  Copyright (C) 2004 Daniel Plücken <daniel@debakel.net>
  34.  *
  35.  *  This library is free software; you can redistribute it and/or
  36.  *  modify it under the terms of the GNU Lesser General Public
  37.  *  License as published by the Free Software Foundation; either
  38.  *  version 2.1 of the License.
  39.  *
  40.  *  This library is distributed in the hope that it will be useful,
  41.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  42.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43.  *  GNU Lesser General Public License for more details.
  44.  *
  45.  *  You should have received a copy of the GNU Lesser General
  46.  *  Public License along with this library; if not, write to the
  47.  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  48.  *  Boston, MA 02111-1307 USA
  49.  */
  50. class HTMLFileInput extends HTMLTextInput
  51. {
  52.   /**
  53.    * Constructor
  54.    *
  55.    * @version 1.0
  56.    * @since   0.1.0
  57.    * @author  Daniel Plücken <daniel@debakel.net>
  58.    * @access  public
  59.    * @param   string  $name 
  60.    * @param   string  $value 
  61.    */
  62.   function HTMLFileInput(
  63.                           $name,
  64.                           $value "",
  65.                           $style_class ""
  66.                         )
  67.   {
  68.     $this->HTMLTextInput(
  69.                            $name,
  70.                            $value,
  71.                            $size     0,
  72.                            $maxchars 0,
  73.                            $style_class 
  74.                         );
  75.   }
  76.  
  77.  
  78.  
  79.   /**
  80.    * Generates the sourcecode to build this object and returns it.
  81.    *
  82.    * @version 1.0
  83.    * @since   0.1.0
  84.    * @author  Daniel Plücken <daniel@debakel.net>
  85.    * @access  public
  86.    * @return  string 
  87.    */
  88.   function getPHPSource()
  89.   return parent :: getPHPSource"HTMLFileInput" )}
  90.  
  91.  
  92.  
  93.   /**
  94.    * Returns a generated string based on the attributes of this object.
  95.    *
  96.    * @version 1.0
  97.    * @since   0.1.0
  98.    * @author  Daniel Plücken <daniel@debakel.net>
  99.    * @param   string $type 
  100.    * @access  public
  101.    * @return  string 
  102.    */
  103.   function get()
  104.   return parent::get"file" )}
  105. // End of HTMLFileInput
  106. ?>

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