function drush_has_boostrapped

8.0.x bootstrap.inc drush_has_boostrapped($phase)
6.x bootstrap.inc drush_has_boostrapped($phase)
7.x bootstrap.inc drush_has_boostrapped($phase)
4.x environment.inc drush_has_boostrapped($phase)
5.x bootstrap.inc drush_has_boostrapped($phase)
master bootstrap.inc drush_has_boostrapped($phase)

Determine whether a given bootstrap phase has been completed

This function name has a typo which makes me laugh so we choose not to fix it. Take a deep breath, and smile. See http://en.wikipedia.org/wiki/HTTP_referer

@returns TRUE if the specified bootstrap phase has completed.

Parameters

phase: The bootstrap phase to test

8 calls to drush_has_boostrapped()
DrupalBoot::drush_command_belongs_to_disabled_module in lib/Drush/Boot/DrupalBoot.php
Check if the given command belongs to a disabled module.
drush_cache_clear_both in commands/core/drupal/cache.inc
Clear caches internal to Drush core and Drupal.
drush_cache_clear_pre_validate in commands/core/cache.drush.inc
drush_cache_command_clear in commands/core/cache.drush.inc
Command callback for drush cache-clear.
drush_sitealias_resolve_path_references in includes/sitealias.inc
If there are any path aliases (items beginning with "%") in the test string, then resolve them as path aliases and add them to the provided alias record.

... See full list

File

includes/bootstrap.inc, line 371

Code

function drush_has_boostrapped($phase) {
  $phase_index = drush_get_context('DRUSH_BOOTSTRAP_PHASE');

  return isset($phase_index) && ($phase_index >= $phase);
}