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

Source for file init.php

Documentation is available at init.php

  1. <?
  2. /**
  3. * The Component Package
  4. * This is the init file for the myPHP Component system
  5. *
  6. * @package component
  7. * @filesource
  8. * @see MYPHP_COMPONENT_PATH/init.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * @global HTML_BASE_PATH Defines the Path to the packages, FIXED, do not change
  18. */
  19. define('HTML_COMPONENT_PATH', MYPHP_COMPONENT_PATH.'/html');
  20.  
  21. /**
  22. * @global HTML_XYZ_PATH Defines the Path to each package, FIXED, do not change
  23. */
  24. define('HTML_COMPONENT_PAGE_PATH' , HTML_COMPONENT_PATH.'/page');
  25. define('HTML_COMPONENT_RESOURCE_PATH', HTML_COMPONENT_PATH.'/resource');
  26. define('HTML_COMPONENT_UTIL_PATH' , HTML_COMPONENT_PATH.'/util');
  27.  
  28. /**
  29. * Define the system Component constants, FIXED, do not change ...
  30. * must be called before Default.php
  31. * @see HTML_COMPONENT_RESOURCE_PATH.'/Define.php' The Define Component Package
  32. */
  33. if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
  34. if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Define.php')) {
  35. require_once(HTML_COMPONENT_RESOURCE_PATH.'/Define.php');
  36. } else {
  37. die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Define.php from '.HTML_COMPONENT_RESOURCE_PATH);
  38. }
  39. }
  40.  
  41. /**
  42. * Define the default Component values, FIXED, do not change ...
  43. * NOTE: Define.php must be called this file
  44. * @see HTML_COMPONENT_RESOURCE_PATH.'/Default.php' The Default Component Package
  45. */
  46. if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
  47. if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Default.php')) {
  48. require_once(HTML_COMPONENT_RESOURCE_PATH.'/Default.php');
  49. } else {
  50. die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Default.php from '.HTML_COMPONENT_RESOURCE_PATH);
  51. }
  52. }
  53.  
  54. /**
  55. * Initializes the Component system with Request params, FIXED, do not change ...
  56. * The Initialize must come before ./config.php and <root>/setup.php
  57. * @see HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php' The Component Initialize Package
  58. */
  59. if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
  60. if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php')) {
  61. require_once(HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php');
  62. } else {
  63. die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Initialize.php from '.HTML_COMPONENT_RESOURCE_PATH);
  64. }
  65. }
  66. ?>

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