summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-08 12:09:54 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-08 12:09:54 +0000
commit5af372289cc172299d0f3cf15408835f8baf1cd7 (patch)
treef10a2ed419a8e30ddc7e79a246d5e70cf75020d3
parentea7224fb6a2909048bf5cb459fe0d292060a93ae (diff)
downloadbrdo-5af372289cc172299d0f3cf15408835f8baf1cd7.tar.gz
brdo-5af372289cc172299d0f3cf15408835f8baf1cd7.tar.bz2
- Patch #101531 by webchick: documenting bootstrap constants.
-rw-r--r--includes/bootstrap.inc34
1 files changed, 34 insertions, 0 deletions
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