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

Source for file Tabindex.php

Documentation is available at Tabindex.php

  1. <?
  2. /**
  3. * @package form
  4. * @filesource
  5. * @see HTML_FORM_COMPONENT_PATH.'/Tabindex.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. /**
  17. * Generates the Tabindex for the label/input elements
  18. * <code>
  19. * Usage:
  20. * $tabindex = Tabindex::next();
  21. * IMPORTANT NOTICE : NEVER TESTED
  22. * </code>
  23. * @package form
  24. */
  25.  
  26. class Tabindex {
  27. static $tabindex = 0; // The current tabindex
  28.  
  29.  
  30. /**
  31. * Constructor
  32. */
  33. function Tabindex() {
  34. }
  35.  
  36. /**
  37. * Display html
  38. * <code>
  39. * Usage:
  40. * $tabindex = Tabindex::next();
  41. * </code>
  42. * @static
  43. * @return int The next tabindex
  44. */
  45. function next() {
  46. return Tabindex::tabindex++;
  47. }
  48. }
  49. ?>

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