From 5af372289cc172299d0f3cf15408835f8baf1cd7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 8 Dec 2006 12:09:54 +0000 Subject: - Patch #101531 by webchick: documenting bootstrap constants. --- includes/bootstrap.inc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 04befd32a..c994a10ab 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -17,13 +17,47 @@ define('WATCHDOG_NOTICE', 0); define('WATCHDOG_WARNING', 1); define('WATCHDOG_ERROR', 2); +/** + * First bootstrap phase: initialize configuration. + */ define('DRUPAL_BOOTSTRAP_CONFIGURATION', 0); + +/** + * Second bootstrap phase: try to call a non-database cache + * fetch routine. + */ define('DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE', 1); + +/** + * Third bootstrap phase: initialize database layer. + */ define('DRUPAL_BOOTSTRAP_DATABASE', 2); + +/** + * Fourth bootstrap phase: identify and reject banned hosts. + */ define('DRUPAL_BOOTSTRAP_ACCESS', 3); + +/** + * Fifth bootstrap phase: initialize session handling. + */ define('DRUPAL_BOOTSTRAP_SESSION', 4); + +/** + * Sixth bootstrap phase: load bootstrap.inc and module.inc, start + * the variable system and try to serve a page from the cache. + */ define('DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE', 5); + +/** + * Seventh bootstrap phase: set $_GET['q'] to Drupal path of request. + */ define('DRUPAL_BOOTSTRAP_PATH', 6); + +/** + * Final bootstrap phase: Drupal is fully loaded; validate and fix + * input data. + */ define('DRUPAL_BOOTSTRAP_FULL', 7); // These values should match the 'role' table -- cgit v1.2.3