phpDocumentor form
[ class tree: form ] [ index: form ] [ all elements ]

Source for file Hidden.php

Documentation is available at Hidden.php

  1. <?
  2. /**
  3. * @package form
  4. * @filesource
  5. * @see HTML_FORM_COMPONENT_PATH.'/Hidden.php'
  6. * @copyright (c) http://Finn-Rasmussen.com
  7. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  8. * @author http://Finn-Rasmussen.com
  9. * @version 1.9
  10. * @since 21-oct-2005
  11. */
  12.  
  13. /**
  14. * The required files
  15. */
  16. require_once(HTML_FORM_COMPONENT_PATH.'/Input.php');
  17.  
  18. /**
  19. * Generates an INPUT element for a form, which is Hidden
  20. * <code>
  21. * <input type="hidden" name="$name" value="$value"
  22. * class="$class" size="$size" maxlength="$maxlength" />
  23. * Usage:
  24. * $hidden = new Hidden($name,$value);
  25. * print $hidden->getHtml();
  26. * Or
  27. * Hidden::display($name,$value);
  28. * </code>
  29. * @package form
  30. */
  31.  
  32. class Hidden extends Input {
  33. /**
  34. * Constructor
  35. * @param String $name The name
  36. * @param String $value The value, if any
  37. */
  38. function Hidden($name,$value='') {
  39. $this->Input('hidden',$name,$value);
  40. }
  41.  
  42. /**
  43. * Display html
  44. * <code>
  45. * Usage:
  46. * Hidden::display($name,$value);
  47. * </code>
  48. * @static
  49. * @param String $name The name
  50. * @param String $value The value, if any
  51. */
  52. function display($name='',$value='') {
  53. $html = new Hidden($name,$value);
  54. $html->addHtml();
  55. }
  56. }
  57. ?>

Documentation generated on Thu, 22 Dec 2005 17:09:21 +0100 by phpDocumentor 1.3.0RC3