drupal_autoload_class

Definition

drupal_autoload_class($class)
drupal/includes/bootstrap.inc, line 1468

Description

Confirm that a class is available.

This function parallels drupal_function_exists(), but 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

Namesort iconDescription
Code registryThe code registry engine.

Code

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