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

Source for file Initialize.php

Documentation is available at Initialize.php

  1. <?
  2. /**
  3. * Initialize the Tab Package.
  4. * Initialize the Tab constants from the POST/GET request
  5. * or from the default values
  6. *
  7. * @package tab
  8. * @filesource
  9. * @see HTML_TAB_RESOURCE_PATH/Initialize.php
  10. * @copyright (c) http://Finn-Rasmussen.com
  11. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  12. * @author http://Finn-Rasmussen.com
  13. * @version 1.9
  14. * @since 21-oct-2005
  15. */
  16.  
  17. /**
  18. * Choose, which Tab components to show
  19. * or extract info from GET/POST
  20. * @global TAB_SHOW The Tab to Show
  21. */
  22. if (!defined('TAB_SHOW')) {
  23. if (empty($_GET[REQUEST_TAB_SHOW])) {
  24. if (empty($_POST[REQUEST_TAB_SHOW])) {
  25. // define it later
  26. } else {
  27. define('TAB_SHOW' ,$_POST[REQUEST_TAB_SHOW]);
  28. }
  29. } else {
  30. /**
  31. * @ignore
  32. */
  33. define('TAB_SHOW' ,$_GET[REQUEST_TAB_SHOW]);
  34. }
  35. }
  36.  
  37. /**
  38. * Choose, The Layout of the Menu
  39. * or extract info from GET/POST
  40. * @global LAYOUT_MENU_TAB_WIDTH The Layout Menu Tab Width to use
  41. */
  42. if (!defined('LAYOUT_MENU_TAB_WIDTH')) {
  43. if (empty($_GET[REQUEST_LAYOUT_MENU_TAB_WIDTH])) {
  44. if (empty($_POST[REQUEST_LAYOUT_MENU_TAB_WIDTH])) {
  45. // define it later
  46. } else {
  47. define('LAYOUT_MENU_TAB_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_TAB_WIDTH]);
  48. }
  49. } else {
  50. /**
  51. * @ignore
  52. */
  53. define('LAYOUT_MENU_TAB_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_TAB_WIDTH]);
  54. }
  55. }
  56. ?>

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