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

Source for file Initialize.php

Documentation is available at Initialize.php

  1. <?
  2. /**
  3. * The Menu Initialize resource file.
  4. * Initialize the system Menu constants from the POST/GET request
  5. * or from the default values
  6. *
  7. * @package menu
  8. * @filesource
  9. * @see HTML_MENU_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 LINK components to show
  19. * or extract info from GET/POST
  20. * @global LINK_SHOW The Link to Show
  21. */
  22. if (!defined('LINK_SHOW')) {
  23. if (empty($_GET[REQUEST_LINK_SHOW])) {
  24. if (empty($_POST[REQUEST_LINK_SHOW])) {
  25. // define it later
  26. } else {
  27. /**
  28. * @ignore
  29. */
  30. define('LINK_SHOW' ,$_POST[REQUEST_LINK_SHOW]);
  31. }
  32. } else {
  33. /**
  34. * @ignore
  35. */
  36. define('LINK_SHOW' ,$_GET[REQUEST_LINK_SHOW]);
  37. }
  38. }
  39.  
  40. /**
  41. * Choose, The Layout of the Menu
  42. * or extract info from GET/POST
  43. * @global LAYOUT_MENU_WIDTH The Layout Menu Width to use
  44. */
  45. if (!defined('LAYOUT_MENU_WIDTH')) {
  46. if (empty($_GET[REQUEST_LAYOUT_MENU_WIDTH])) {
  47. if (empty($_POST[REQUEST_LAYOUT_MENU_WIDTH])) {
  48. // define it later
  49. } else {
  50. /**
  51. * @ignore
  52. */
  53. define('LAYOUT_MENU_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_WIDTH]);
  54. }
  55. } else {
  56. /**
  57. * @ignore
  58. */
  59. define('LAYOUT_MENU_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_WIDTH]);
  60. }
  61. }
  62.  
  63. /**
  64. * Choose, The Layout of the Menu
  65. * or extract info from GET/POST
  66. * @global LAYOUT_MENU_TOP_WIDTH The Layout Menu Top Width to use
  67. */
  68. if (!defined('LAYOUT_MENU_TOP_WIDTH')) {
  69. if (empty($_GET[REQUEST_LAYOUT_MENU_TOP_WIDTH])) {
  70. if (empty($_POST[REQUEST_LAYOUT_MENU_TOP_WIDTH])) {
  71. // define it later
  72. } else {
  73. /**
  74. * @ignore
  75. */
  76. define('LAYOUT_MENU_TOP_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_TOP_WIDTH]);
  77. }
  78. } else {
  79. /**
  80. * @ignore
  81. */
  82. define('LAYOUT_MENU_TOP_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_TOP_WIDTH]);
  83. }
  84. }
  85.  
  86. /**
  87. * Choose, The Layout of the Menu
  88. * or extract info from GET/POST
  89. * @global LAYOUT_MENU_LEFT_WIDTH The Layout Menu Left Width to use
  90. */
  91. if (!defined('LAYOUT_MENU_LEFT_WIDTH')) {
  92. if (empty($_GET[REQUEST_LAYOUT_MENU_LEFT_WIDTH])) {
  93. if (empty($_POST[REQUEST_LAYOUT_MENU_LEFT_WIDTH])) {
  94. // define it later
  95. } else {
  96. /**
  97. * @ignore
  98. */
  99. define('LAYOUT_MENU_LEFT_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_LEFT_WIDTH]);
  100. }
  101. } else {
  102. /**
  103. * @ignore
  104. */
  105. define('LAYOUT_MENU_LEFT_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_LEFT_WIDTH]);
  106. }
  107. }
  108.  
  109. /**
  110. * Choose, The Layout of the Menu
  111. * or extract info from GET/POST
  112. * @global LAYOUT_MENU_RIGHT_WIDTH The Layout Menu Right Width to use
  113. */
  114. if (!defined('LAYOUT_MENU_RIGHT_WIDTH')) {
  115. if (empty($_GET[REQUEST_LAYOUT_MENU_RIGHT_WIDTH])) {
  116. if (empty($_POST[REQUEST_LAYOUT_MENU_RIGHT_WIDTH])) {
  117. // define it later
  118. } else {
  119. /**
  120. * @ignore
  121. */
  122. define('LAYOUT_MENU_RIGHT_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_RIGHT_WIDTH]);
  123. }
  124. } else {
  125. /**
  126. * @ignore
  127. */
  128. define('LAYOUT_MENU_RIGHT_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_RIGHT_WIDTH]);
  129. }
  130. }
  131. /**
  132. * Choose, The Layout of the Menu
  133. * or extract info from GET/POST
  134. * @global LAYOUT_MENU_BOTTOM_WIDTH The Layout Menu Bottom Width to use
  135. */
  136. if (!defined('LAYOUT_MENU_BOTTOM_WIDTH')) {
  137. if (empty($_GET[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH])) {
  138. if (empty($_POST[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH])) {
  139. // define it later
  140. } else {
  141. /**
  142. * @ignore
  143. */
  144. define('LAYOUT_MENU_BOTTOM_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH]);
  145. }
  146. } else {
  147. /**
  148. * @ignore
  149. */
  150. define('LAYOUT_MENU_BOTTOM_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH]);
  151. }
  152. }
  153. ?>

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