You are here

function autoload_interface in Autoload 6.2

Confirm that an interface 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

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

Return value

TRUE if the interface is currently available, FALSE otherwise.

Related topics

2 string references to 'autoload_interface'
autoload_boot in ./autoload.module
Implements hook_boot().
autoload_enable in ./autoload.install
Implements hook_enable().

File

./autoload.module, line 114

Code

function autoload_interface($interface) {
  return _autoload_registry_check_code('interface', $interface);
}