Code registry

  1. drupal
    1. 7 registry.inc
    2. 8 registry.inc

The code registry engine.

Drupal maintains an internal registry of all functions or classes in the system, allowing it to lazy-load code files as needed (reducing the amount of code that must be parsed on each request).

Functions & methods

NameDescription
drupal_autoload_classConfirms that a class is available.
drupal_autoload_interfaceConfirms that an interface is available.
registry_get_parsed_filesReturn the list of files in registry_file
registry_rebuildRescans all enabled modules and rebuilds the registry.
registry_updateUpdates the registry based on the latest files listed in the database.
_registry_check_codeChecks for a resource in the registry.
_registry_parse_fileParse a file and save its function and class listings.
_registry_parse_filesParse all files that have changed since the registry was last built, and save their function and class listings.
_registry_updateDoes the work for registry_update().

File

includes/registry.inc, line 8
This file contains the code registry parser engine.

Login or register to post comments