function drupal_autoload_class

Confirms that a class is available.

This function is rarely called directly. Instead, it is registered as an spl_autoload() handler, and PHP calls it for us when necessary.

Parameters

$class: The name of the class to check or load.

Return value

TRUE if the class is currently available, FALSE otherwise.

Related topics

1 call to drupal_autoload_class()
BootstrapAutoloadTestCase::testAutoloadCase in drupal/modules/simpletest/tests/bootstrap.test
Tests that autoloader name matching is not case sensitive.
2 string references to 'drupal_autoload_class'
UpgradePathTestCase::setUp in drupal/modules/simpletest/tests/upgrade/upgrade.test
Overrides DrupalWebTestCase::setUp() for upgrade testing.
_drupal_bootstrap_database in drupal/includes/bootstrap.inc
Initializes the database system and registers autoload functions.

File

drupal/includes/bootstrap.inc, line 3398
Functions that need to be loaded on every Drupal request.

Code

function drupal_autoload_class($class) {
  return _registry_check_code('class', $class);
}